登录
首页 » Visual C++ » sliding

sliding

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

  • FlashIcon
    漂亮的图标程序源代码(beautiful icon source code)
    2004-09-24 19:23:53下载
    积分:1
  • TabView_TabCtr
    TabView 具有TabCtrl类似功能的视图类(Tabview class have the function like TabCtrl .)
    2013-11-30 10:34:05下载
    积分:1
  • ASimpleCalculator
    一个简单的计算器程序,实现了加、减、乘、除计算(A simple calculator program to achieve the add, subtract, multiply, divide computing)
    2013-12-17 22:04:32下载
    积分:1
  • digital-signal-generator
    Matlab 数字信号发生器 课程要求,不全但可用。(Matlab digital signal generator)
    2011-10-21 16:59:55下载
    积分:1
  • loudong
    说明:  可以测试系统存在的漏洞 大家可以学习源码,打开应用程序 这是自己原创(Can test the existence of loopholes in the system that we can learn from source code, open the application, this is their own original)
    2010-03-29 15:50:31下载
    积分:1
  • InserSigList
    单链表的插入。数据结构中的算法小程序。初学者很适用。(Single-linked list insertion. Data structure of algorithm applet. Beginners are applicable.)
    2016-02-18 15:09:12下载
    积分:1
  • LOL防封
    说明:  LOL防封,可以参考研究,不能直接用要更新(Lol is sealed, research-ready, not ready to be updated)
    2020-03-02 12:04:05下载
    积分:1
  • AES
    一个并行粗糙集离散化算法,采用VC和MPI并行开发通信接口实现,目前速度最快的离散化算法。(A parallel algorithm for discretization of rough sets, using VC, and MPI parallel development of communication interfaces, the fastest of the discrete algorithm.)
    2010-03-07 15:57:47下载
    积分:1
  • vpir_scene
    说明:  该软件描述红外场景效果,是Vega Prime 软件系统红外特效模块开发的(The software described in infrared scene effects, Vega Prime is a software system developed by infrared effects module)
    2010-03-19 15:21:50下载
    积分:1
  • main
    利用形态学,霍夫(Hough)变换,实现畸变QR码的4个角点的定位。(To correct the distortion of the QR code,use morphology operation, Hough transform, to locat the positioning of the four corner points)
    2012-03-14 15:17:57下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载