登录
首页 » Visual C++ » sliding

sliding

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

  • vcmatlab
    VC与matlab混合编程。详细介绍了几种混合编程的方法,实用易懂。(VC mixed with matlab programming. Details of several hybrid programming approach, practical and easy to understand.)
    2011-08-21 09:28:39下载
    积分:1
  • 1
    说明:  界面化的简单文件操作 创建读写修改权限 可通过界面交互操作(simple file operations with interface )
    2015-06-09 18:17:34下载
    积分:1
  • OPENCV-target-recognition
    OPENCV 目标识别 经验证效果很好 (Target recognition OPENCV proven good results)
    2014-03-24 18:21:34下载
    积分:1
  • chain
    链表的模板类,提供插入删除,遍历器,查找等功能,只有一个头文件,可以包含到你的工程(template implemention of Chain)
    2013-12-09 11:04:33下载
    积分:1
  • MyNewReProject
    点云读取,旋转,平移,缩放,统统是包含全视图的各种视图的显示(Point in put)
    2010-12-10 13:48:03下载
    积分:1
  • simulink-congtrol-system
    精通simulink系统仿真与控制 沈辉编著 北京大学出版社(Proficient in simulink simulation and control system)
    2011-05-23 15:24:23下载
    积分:1
  • OpenGLSelect
    OPENGL环境下的实现点、线、圆、矩形的绘制及其选择。计算机图形学大作业。(The OPENGL environment under of the realization order,the line,circle,rectangle draw and it choose.The calculator sketch learns the big homework )
    2011-12-27 21:13:45下载
    积分:1
  • splitter_2
    说明:  在分隔器窗格中切换视图 (switch view in separators pane)
    2009-07-21 19:56:35下载
    积分:1
  • lizidenoising
    这是一种基于粒子权重去噪代码,本人自己实现,非常实用。(Based on the particle weight denoising code)
    2015-04-11 09:52:59下载
    积分:1
  • OpenCV
    讨论了OpenCV(Open Source Computer Vision Library)相对于现有的计算机视觉软件包所具有的优势,描述了OpenCV的 环境配置、数据定义、图像元素访问方式。OpenCV成为一种源码开放、包含丰富的高级数学计算函数、图像处理函数和计算机视觉 函数、不断更新和平台无关性的计算机视觉软件包。(Discussed the OpenCV (Open Source Computer Vision Library) relative to the existing computer vision, the advantages of packages, description of OpenCV environment configuration, data definition, the image element access mode. OpenCV become an open-source, contains a wealth of advanced mathematical calculations, functions, image processing functions, and computer vision functions, continuously updated, and platform-independent package of computer vision.)
    2009-10-25 00:48:30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载