登录
首页 » Visual C++ » sliding

sliding

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

  • lab3
    dsacvxcvcxb cxb cx bcx
    2018-01-21 10:55:42下载
    积分:1
  • AlphaBlend
    说明:  DirectX编程:Alpha混合示例程序(DirectX programming: alpha mixed sample program)
    2020-06-10 14:19:10下载
    积分:1
  • dvb
    说明:  关于DVBT的OFDM发送和接受部分的MATLAB代码。(On the OFDM DVBT send and receive part of the MATLAB code.)
    2010-04-03 13:28:35下载
    积分:1
  • maze
    说明:  随机生成三维迷宫,算法值得一看,可能对你有帮助(Randomly generated three-dimensional maze, algorithm worth a visit may help you)
    2008-09-09 14:57:00下载
    积分:1
  • HoG
    基于hog算法的人数识别程序,使用了openCV视觉库,效率高,主要是边缘检测(Algorithm based on the number of hog identification procedures)
    2010-08-07 10:22:38下载
    积分:1
  • 数字图像几何变换
    几何变换是最常见的图像处理手段,通过对变形的图像进行几何校正()
    2017-11-11 13:44:20下载
    积分:1
  • NAND-FLASH
    一个C6747读写和擦除NAND FLASH的例程,可以直接运行,具有很高的参考价值(A example code of NAND FALSH of C6747, with good value to be a reference and with no bug.)
    2020-08-27 10:28:15下载
    积分:1
  • ArcGisForProgram
    对于开发地图程序的新手来说,是个很好的学习程序(Map for the development of new procedures, it is a good study program)
    2009-02-25 23:06:38下载
    积分:1
  • Splitter_multi_view
    Splitter多视图切换的源代码,vc++工程(Splitter switched multi-view source code)
    2014-01-03 09:52:22下载
    积分:1
  • berth_quay10_8
    用于解决港口优化调度的算例,程序可解,且富有详细说明(The optimal scheduling algorithm used to solve the port, the program is solvable, and rich detailed instructions)
    2020-07-02 20:20:02下载
    积分:1
  • 696522资源总数
  • 104029会员总数
  • 31今日下载