登录
首页 » Visual C++ » sliding

sliding

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

  • bh
    说明:  cpu核设计必备工具-11个Benchmark(基准测试程序)(cpu-core design an indispensable tool for-11 months Benchmark (benchmark))
    2010-03-26 14:29:54下载
    积分:1
  • VC_OpenDIB256
    说明:  一个打开并显示位图或者像素矩阵的程序 注意:本程序没有使用DOC/VIEW架构, 所以理解起来更容易,适合初学者。 本程序支持bmp、raw格式图像的读取(an open and display bitmap pixel matrix, or the procedures to : this procedure does not use DOC/VIEW structure, make it easier to understand and suitable for beginners. This program supports bmp, raw format images read)
    2006-05-15 22:09:45下载
    积分:1
  • ECG
    基于FRDM-KL25Z及简单运放(LM324)设计出了一套小巧、低成本的心电监测装置。它不但能够结合上位机实时显示心电图而且能够将采集的心电信号储存于SD卡,用于24h心电监护,以备观察不同时间段心血管疾病的症状。(FRDM-KL25Z and simple operational amplifier (LM324) based on the designed ECG monitoring device with a set of small, low cost. It can not only combine with the real-time display of the host computer and can store the collected ECG signals in SD card for 24h ECG monitoring for the observation of the symptoms of cardiovascular diseases at different time periods. )
    2016-08-29 20:40:49下载
    积分:1
  • MyLOD
    LOD技术显示复杂地形,利用openGL编程,vc6.0开发环境,推荐下载(Terrain LOD technology show, openGL programming, vc6.0 development environment, it is recommended to download)
    2010-11-15 09:48:32下载
    积分:1
  • cgmotion
    fluent udf的动网格程序,实现了刚体和基于节点的运动(cg-motion grid motion)
    2020-11-20 09:39:37下载
    积分:1
  • prac_7
    利用arcgis等技术,图像进行空间分析,空间查询等方法,是arcgis的一次大作业(this is a arcigs big test,it is value for the new leaner to learn arcgis)
    2015-07-17 09:42:49下载
    积分:1
  • PLCpcb
    国外PLC设计的原理图和PCB(Principle foreign PLC design and PCB)
    2016-06-02 14:20:50下载
    积分:1
  • function-definition
    说明:  OpenGL基本图形绘制,所用到的基本函数简单说明(Basic OpenGL graphics rendering, the basic function used by a brief explanation)
    2009-08-09 22:52:53下载
    积分:1
  • VirtualCamera
    window下注册一个虚拟摄像头,并且在内存中开辟一块共享内存,将共享内存中的数据显示在摄像头中。qq等聊天工具可用。(Window registered a virtual camera, and in memory to open a shared memory, the shared memory data display in the camera. QQ chat tools available.)
    2014-10-28 12:16:32下载
    积分:1
  • HistDemoA
    说明:  VC做的图像直方图均衡化小程序,有助于学习图像处理基本知识(VC image histogram equalization do applet can help to learn basic knowledge of image processing)
    2009-08-31 14:36:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载