登录
首页 » Visual C++ » sliding

sliding

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

  • duoxianchengshizhong
    多线程写的时钟例子,界面用的贴图方法贴上去的(The clock to write multi-threaded example, the interface method with the paste up map)
    2011-12-02 17:05:18下载
    积分:1
  • Dezender4.3
    说明:  黑刀Dezender4.3简体中文版 黑刀Dezender4.3简体中文版 黑刀Dezender4.3简体中文版(Black knife Black knife Dezender4.3 Simplified Chinese Simplified Chinese version of Dezender4.3 Simplified Chinese version of the black knife Dezender4.3)
    2010-03-21 07:30:14下载
    积分:1
  • Directshow2.0_filter
    Complete directshow for real job, mpeg1 filter.you will never find a project like this good.Its a hard work for me. 1.async filter 2.mpeg1 splitter 3.mpeg1/2 video filter 4.mpeg1/2 audio filter 5.ac3 filter by Jesse Stone, Taiwan. and thanks for many people,put the source code let my work make it good. msn:fatalfeel@hotmail.com
    2007-09-03 14:02:58下载
    积分:1
  • chaoleiyouxi
    这是我自己用MATLAB编的一个扫雷小游戏,程序比较经典,希望和大家一起分享.(This is for my own use MATLAB series of the game a small mine, the procedure is classic, want to share with everyone.)
    2007-05-05 10:11:06下载
    积分:1
  • NEW
    一种新的彩色图像去噪与增强模型(A new color image denoising and enhancement model)
    2008-05-28 20:54:06下载
    积分:1
  • subspace
    经典子空间算法的完整实现,噪声消除效果比较好(an approach of speech enhancement algorithm)
    2013-08-26 11:24:39下载
    积分:1
  • bayesreserh
    贝叶斯网络结构学习及其在数据挖掘中的应用研究 一篇非常不错的博士论文(Bayesian Network Structure Learning and Its Application in Data Mining of a very good dissertation)
    2010-06-02 13:16:54下载
    积分:1
  • fansouban
    IMC-PID是利用内模控制原理来对PID参数进行计算,PLS部分最小二乘工具箱,多机电力系统仿真及其潮流计算。( The IMC- PID is using the internal model control principle for PID parameters is calculated, PLS PLS toolbox, Multi-machine power system simulation and flow calculation.)
    2017-04-16 11:53:52下载
    积分:1
  • vc6.0-MSDN-CHM
    VC6.0 MSDN帮助文档 CHM版 最新(The VC6.0 MSDN help documentation CHM version of the latest)
    2013-01-07 14:11:06下载
    积分:1
  • FIR.C
    FIR滤波器的C语言实现 C语言源程序代码及解析(FIR filter, the C language realization C source code and analytical)
    2010-05-28 17:13:54下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载