登录
首页 » Visual C++ » sliding

sliding

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

  • cximage600_demo
    方便实现图像的 处理,功能强大的算法文件,可以较好的实现图像的处理(Facilitate the realization of image processing, powerful algorithm files, you can better realize the image processing)
    2017-06-13 15:19:10下载
    积分:1
  • RecordManagementSystem-devoleped-by-VC
    说明:  压缩包包括完整的实例代码,可供大家研究和学习,内附说明!(Archive includes a complete example code, for all research and study, included instructions!)
    2010-04-21 15:07:24下载
    积分:1
  • MSK
    MSK通信建模与仿真,simulink源文件,东华大学研究生通信建模与仿真课程设计代码(Modeling and simulation of MSK communication simulink source file, donghua university graduate course design of the modeling and simulation of communication code )
    2016-04-01 08:57:35下载
    积分:1
  • quantumkey
    量子密钥仿真 量子信息,BB84协议 量子密钥分配,安全通信,量子密码学,进十年内可能取代传统方法(the model of quantum key )
    2009-03-07 09:52:11下载
    积分:1
  • MM1
    用C++实现排队论中M/M/1模型。简单方便。(Using C++ implementation in the M/M/1 queuing theory model. Easy and convenient.)
    2020-11-16 13:39:41下载
    积分:1
  • 645-376.1
    支持电力规约645,376.1等相关规约的485代码,支持常用电表控制信令代码,(Support the power of the Statute 645,376.1 Statute 485 and other related code, support for common control signaling code meter,)
    2020-09-09 21:08:03下载
    积分:1
  • OTMatlab
    凸包绘制源程序Matlab的实现,凸包Matlab绘制(Convex hull draw Matlab source implementations)
    2015-01-13 22:22:22下载
    积分:1
  • ucos-c
    压缩包中有基于ucos系统下的常用程序,有tim捕获,串口查询,串口中断,定时器中断,温度读取。(Compressed package based on common procedures under ucos system, there are tim capture, serial query, the serial port interrupt, timer interrupt, temperature reading.)
    2015-11-12 21:58:59下载
    积分:1
  • MFCLibrary1
    msgina代码修改此代码生成dll替换winxp中的msgina.dll可以设置xp登录方式(Msgina code to modify this code to generate DLL to replace msgina. DLL in WinXP can set the way of XP login)
    2019-03-28 14:01:40下载
    积分:1
  • VCandMatlab
    VC和Matlab混合编程总结 VC和Matlab混合编程总结(VC and Matlab programming concluding mixed mixed VC and Matlab programming summary)
    2008-04-20 22:44:07下载
    积分:1
  • 696518资源总数
  • 106174会员总数
  • 31今日下载