登录
首页 » Visual C++ » sliding

sliding

于 2011-04-03 发布 文件大小:1KB
0 262
下载积分: 1 下载次数: 0

代码说明:

说明:  求出sliding window的最大最小值(n array of size n ≤ 106 is given to you. There is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves rightwards by one position. Following is an example: The array is [1 3-1-3 5 3 6 7], and k is 3. Window position Minimum value Maximum value [1 3 -1]-3 5 3 6 7 -1 3 1 [3 -1 -3] 5 3 6 7 -3 3 1 3 [-1 -3 5] 3 6 7 -3 5 1 3 -1 [-3 5 3] 6 7 -3 5 1 3 -1 -3 [5 3 6] 7 3 6 1 3 -1 -3 5 [3 6 7] 3 7 Your task is to determine the maximum and minimum values in the sliding window at each position. )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • binomial
    输入二项式的每一项系数和指数,输入未知函数的值求值,然后输入第二个二项式,并合并两个二项式(Enter the binomial coefficient and index of each one, enter the value of an unknown function evaluation, and then enter the second binomial, and the merger of the two binomial)
    2009-12-27 11:03:56下载
    积分:1
  • MD5SHA1
    md5及sha-1算法及验证文件,vc6.0调试无误(md5 and sha-1 algorithm and verification documents, vc6.0 debug and correct)
    2009-09-18 09:02:34下载
    积分:1
  • Account
    本系统是基于VS2003平台下用C++语言开发的一套简单帐目管理系统,数据库为SQL 2000.系统功能主要包括生产管理、销售管理、采购管理、员工管理、客户管理、用户权限管理等功能(This system is based on the VS2003 platform using C++ language development of a simple set of account management system, database SQL 2000. System functions include production management, sales management, purchasing management, staff management, customer management, user rights management, etc. Function)
    2009-11-11 16:33:14下载
    积分:1
  • p2p
    说明:  一个好的P2P即时通讯程序源码,包含服务器端和客户端。(A good source P2P instant messaging program, including server-side and client.)
    2008-11-18 13:36:06下载
    积分:1
  • dandan
    一个基于 easyX图形函数库的 实现及时制弹弹堂效果的小游戏 源码(a easy game in easyX an windows API )
    2013-06-15 14:38:55下载
    积分:1
  • 8032__2010_3.9
    适合dvd板卡开发的程序员,这版是mtk 8032的公版软件(Dvd board development for programmers, this version is the public version of the software mtk 8032)
    2011-09-16 16:10:50下载
    积分:1
  • TBNIZ578
    一个小巧的个人信息管理程序,很实用,vc6的源码和可执行文件,(A small, personal information management program is very practical, vc6 source code and executable file,)
    2017-07-22 12:27:26下载
    积分:1
  • Classic-game-map-editor
    经典游戏地图编辑器,VC编译成功,可以运行。值得下载。(Classic game map editor, VC compile successfully, you can run. Worth downloading.)
    2013-12-06 22:14:54下载
    积分:1
  • try2LPR-2.0
    这是利用VC++6.0开发的汽车车牌识别系统,其基本原理是采用了基于车牌颜色对的最新的车牌识别技术。相关技术有:车牌定位,字符定位,车牌倾斜纠正,字符识别等。源代码可以直接编译运行,识别的图象要求为彩色照片24位。 (This is the VC 6.0 automobile license plate recognition system Its basic tenets are based on the use of color plates on the latest technology to identify the license plate. Related technologies : vehicle positioning, character positioning plates tilt corrected, such as character recognition. Source code can be directly translated operations, the identification requirements for image color photographs of 24.)
    2020-06-26 05:20:01下载
    积分:1
  • omnet++环境下实现的tcpip协议 TCPSocket
    在omnet++环境下实现的tcpip协议.由于omnet++环境下代码是分模块实现的,这里将客户端和用户端放在了同一个文件里(A C++ program of TCPIP on platform Omnet++)
    2021-01-27 10:48:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载