登录
首页 » Visual C++ » sliding

sliding

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

  • Gauss-Laguerre
    matlab勒让德 - 高斯求积,用于计算勒让德 - 高斯求积分(Gauss–Laguerre quadrature)
    2015-02-17 14:43:58下载
    积分:1
  • surface111
    说明:  这是个曲面建模的程序,里面同时也包含算法,(This is a surface modeling procedures, but also includes inside algorithm. .)
    2006-03-05 09:16:48下载
    积分:1
  • layout
    This example shows simple and intermediate use of Qt s layout classes, QGridLayout, QBoxLayout etc.
    2009-08-28 15:25:14下载
    积分:1
  • Mur1_2_FDTD_2Ds_transmit
    FDTD时域有限差分 MATLAB 编程(Finite difference time domain FDTD MATLAB Programming)
    2011-05-12 20:02:03下载
    积分:1
  • 8_shuma_game
    C++九宫格数码游戏源码,有兴趣的朋友学习一下。(C++ Jiugongge digital game source code, learn about friends who are interested.)
    2011-05-25 06:11:57下载
    积分:1
  • Slide_Do-luong-tu-dong
    this is a book to learn English TOEIC
    2015-04-13 00:50:04下载
    积分:1
  • 《马昌凤-最优化方法及其Matlab程序设计》
    说明:  全面详细解读MATLAB优化算法,序列二次规划、共轭梯度,拟牛顿法等(Comprehensively and detailedly interpret the optimization algorithm of MATLAB)
    2019-01-09 10:19:57下载
    积分:1
  • SplitterWnd
    利用CSplitterWnd类实现对单文档工程进行视图区域的分割(Using the CSplitterWnd class implements the single document engineering for segmenting the view area)
    2013-05-13 10:12:39下载
    积分:1
  • gpio
    DSP2812-gpio应用。第三方地方(DSP2812SCI communication program.)
    2013-07-15 13:54:04下载
    积分:1
  • The-FDTD-Method---Computation-and-Analysis
    fdtd program,using the matlab program ,very good
    2012-05-28 17:15:36下载
    积分:1
  • 696518资源总数
  • 104271会员总数
  • 57今日下载