登录
首页 » Visual C++ » sliding

sliding

于 2011-04-03 发布 文件大小:1KB
0 243
下载积分: 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 个回复

  • crypto_api_doc
    说明:  介绍关于crypto_api的相关使用说明,着重于运用。(Introduce the relevant instructions on the crypto_api focus on the use.)
    2010-04-26 11:12:48下载
    积分:1
  • 13
    说明:  图象压缩方面的论文pdf格式 可用于毕业设计方面的工作(Image compression pdf format papers for school design work)
    2010-05-26 20:37:18下载
    积分:1
  • pca-cPP-svd-algorithm
    主成分分析的c++实现使用奇异值分解svd算法(Principal Component Analysis based on svd algorithm ,used c++)
    2012-11-22 15:18:38下载
    积分:1
  • 多线程设计
    mfc多线程设计,windows程序设计(MFC multithread design)
    2017-12-22 20:27:51下载
    积分:1
  • woterrobotstarsky2.0
    是一个用Opengl和VC编写的代码,实现是的水下机器人的实时路径规划。同时设置了几个不同的视角来观察机器人。是三维海底水下机器人的方针(Is a VC with opengl and the preparation of the code, is an underwater robot to achieve real-time path planning. At the same time set up a number of different angles to observe the robot. Is three-dimensional seabed underwater robot approach)
    2008-05-18 19:15:33下载
    积分:1
  • 10
    说明:  matlab高效编程程序第十章,可以运行。(Chapter matlab programming procedure efficient, you can run.)
    2011-04-10 15:32:10下载
    积分:1
  • Lexicalanalsis
    这是编译原理的词法分析器,功能分析你输入的字符。用VC6.0。(This is the lexical analyzer of compiler theory, the function is to analyze the characters you enter. With VC6.0.)
    2012-05-16 19:31:13下载
    积分:1
  • TreeCtrl
    树形控件,可以插入头像,利用该控件可以实现类似QQ好友列表的功能(Tree class, it can show img at every item,you can use it to make friends list box like QQ)
    2013-12-09 11:26:32下载
    积分:1
  • mototestv0.0131
    profibus dp主站于从站通信,实现与西门子程序一样的功能(profibus dp master station communications from the station, the same procedure with the functions of Siemens)
    2009-04-17 08:47:53下载
    积分:1
  • PMCHW_MoM(compleX
    说明:  矩量法程序,用fortran语言编写的传统矩量法求解立方体的RCS的程序(FortranA Program for Solving RCS of Cubes by Traditional Moment Method Written in Fortran Language)
    2021-04-07 15:09:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载