登录
首页 » Visual C++ » sliding

sliding

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

  • NovatelRange
    上传程序用于解析Novatel输出range 信息,解析结果已经验证。(The upload process is used to resolve the Novatel output range information, analytical results have been verified.)
    2013-05-17 16:24:27下载
    积分:1
  • ADO+Access
    VC和ADO以及ACCESS连接的典型例子。不仅展示了VC如何通过ADO连接MDB文件,同时也有其它技巧展示。(VC and ADO and ACCESS connecting a typical example. It not only demonstrates how the VC ADO connection MDB documents, but also have other skills display.)
    2006-05-22 20:30:55下载
    积分:1
  • modubs
    说明:  该源码实现51单片机之间符合modbus通信协议的通信(This code can achieve communications between MCS51 by modbus protocol. )
    2010-04-16 17:02:11下载
    积分:1
  • 南开一百题答案
    这个是南开大学上机100题的题目和答案,对学习c语言的人有很大的帮助(Nankai University is the 100 on the plane and that the questions and answers, to learn the language c there is a great help)
    2020-06-26 09:40:02下载
    积分:1
  • 4347474353
    说明:  一个很好用的openGL源代码, 适合初学者者.(OpenGL used a very good source code, suitable for beginners who.)
    2008-10-07 15:48:04下载
    积分:1
  • ann_c
    简单的人工神经网络实现,用C语言,训练算法是BP。(C Language applied simple artificial neural network,training method is back propogation)
    2013-10-22 10:20:06下载
    积分:1
  • GetPixel
    取色源代码,功能满足一般的需求,重在学习,共同努力吧(GetPixel From Windows)
    2009-06-12 10:54:53下载
    积分:1
  • zorros-software
    C++初级设计常用举例,方便初学者学习查对。如有疑问可回帖索求。(C++ primary design used for example for beginners to learn checker.)
    2013-11-04 11:11:54下载
    积分:1
  • Rrayleigh_chaa
    瑞利衰落信道仿真,基于Matlab的瑞利衰落信道仿真程序序源代码,还可以用C++来进行编程,已通过测试。 (Rayleigh fading channel simulation, has been tested Matlab Rayleigh fading channel simulation program sequence source code, you can also C++ programming.)
    2012-07-22 22:23:36下载
    积分:1
  • QUADTREE地形
    说明:  四叉树(lod)实现地形三维可视化的程序,内有代码和数据(quadtree (incomplete) 3D terrain visualization procedures, which have code and data)
    2005-10-19 19:47:15下载
    积分:1
  • 696518资源总数
  • 105895会员总数
  • 18今日下载