登录
首页 » Visual C++ » sliding

sliding

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

  • owkb493
    An MFC Class which offers you the abbility(The An MFC Class which offers you the abbility)
    2017-03-31 21:59:56下载
    积分:1
  • 并行openmp
    Openmp for parallel computing samples!!!
    2020-06-22 09:40:06下载
    积分:1
  • Principles_and_Patterns
    说明:  programming principles and patterns
    2019-03-19 13:23:19下载
    积分:1
  • file
    微分几何的电子书,很经典的书,通俗易懂,如果要学习微分几何,推荐(this is a book about differential geometry)
    2012-02-15 18:03:34下载
    积分:1
  • DX11Terrain
    DirectX11 四叉树地形程序,通过高度图生成地图模型(DirectX11 quadtree terrain procedures, through highly generation map model)
    2013-06-17 16:42:19下载
    积分:1
  • MS06034
    漏动攻击MS06034源程序,编译后可运行,测试效果一般,因为是一个比较老的洞了(MS06034 source leakage dynamic attack, the compiler can be run to test the effect of the general, because it is a hole the old)
    2009-06-14 12:40:02下载
    积分:1
  • BootFlashDos-uranusk
    boot flash dos download
    2009-02-19 19:05:05下载
    积分:1
  • a
    说明:  不带像素操作的机器视觉代码-The brain transforms and discards pixels. The transformation is a smoothing and differencing filter. The output of an individual filter is ambiguous.The output of 5 filters lets us find edges and corners. A small number of filters covers the entire image. This method is fast and discards irrelevant information(Without pixel machine vision operation code-The brain transforms and discards pixels. The transformation is a smoothing and differencing filter. The output of an individual filter is ambiguous.The output of 5 filters lets us find edges and corners. A small number of filters covers the entire image. This method is fast and discards irrelevant information)
    2007-11-22 15:54:19下载
    积分:1
  • zfqf1
    网上找的,字符分割MATLAB源代码。你懂得字符分割MATLAB源代码。你懂得。。(fsfsdsdfsdsdfsdsdfsd)
    2010-12-04 17:14:01下载
    积分:1
  • RegMon_Source_Code
    鼎鼎大名的Regmon的源码,使用驱动模式检测注册表变化!值得学习!(the Regmon the BBC source, the use of model-driven detection of the registry change! Worth learning!)
    2007-06-25 20:58:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载