登录
首页 » Visual C++ » sliding

sliding

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

  • LotterySelection
    MFC实现一个好玩的 号码快速变化 再停止的抽奖程序(MFC implements a fun number to stop the fast-changing lottery process again)
    2011-11-29 12:39:59下载
    积分:1
  • work
    数独游戏 a) 设计一个命令行界面的游戏,登入游戏界面后,应该有游戏规则说明,按键说明。 b) 进入游戏前应该有难度选择:1表示简单、2表示中等、3表示困难。 c) 在游戏主界面中有可以循环输入数独值、可以连续玩好几局直到退出、检查结果、查看答案、新开一局的功能。 d) 信息提示功能:输入错误时应有提示、游戏失败或获取胜利时应有庆祝界面等。 (Sudoku a) the design of a command-line interface of the game, log into the game interface, there should be rules of the game description, key instructions. b) prior to entering the game should have difficulty options: 1 means simple, 2 for moderate, 3 for difficulty. c) There can be recycled input Sudoku value, you can continuously play several bureau until you exit the game the main interface, test results, see the answer, features a newly opened office. d) Information prompts: input error when prompted, the game fails or gets victory should have celebrated interface.)
    2014-07-06 23:06:58下载
    积分:1
  • 217
    说明:  用c语言完成(2,1,7)卷积编码,viterbi解码(Complete with c language (2,1,7) convolutional coding, viterbi decoding)
    2010-04-28 22:11:44下载
    积分:1
  • client-server
    用socket实现客户端服务器上传下载传输文件(use socket download file)
    2014-06-11 22:03:09下载
    积分:1
  • Cguide
    帮助新手规范C程序书写格式 帮助老手纠正错误的书写习惯 使程序效率更高(C program written to help novice standard format to help veterans to correct the wrong writing habits to make programs more efficient)
    2009-12-08 16:42:44下载
    积分:1
  • sockAPI
    windows socket API的基本应用 完整工程;服务器异步监听模式 适合初学参考。(The basic application windows socket API complete works server asynchronous listening mode suitable for beginners reference.)
    2009-10-17 09:11:45下载
    积分:1
  • opencv-relex-detection-
    对槽内多边形区域是否松动出槽外的松动检测,本程序运用harris角点检测的方法进行处理,(Polygonal area is loose on the tank outside the groove loose detection, the use of this program harris corner detection method for processing,)
    2013-09-08 22:02:08下载
    积分:1
  • SMG138
    74HC138驱动数码管程序,驱动4位共阳数码管,阳极全部高电平,138驱动段码(74HC138-driven digital control program)
    2013-12-25 15:15:10下载
    积分:1
  • VCPP-image-processing-chapter05
    VisualC++数字图像处理技术详解第2版光盘-第五章(VisualC++ digital image processing technology Detailed Version 2 CD- Chapter V)
    2016-04-16 13:33:13下载
    积分:1
  • Terrain
    简单的地形渲染程序,使用了四叉树的LOD优化算法。(Simple rendering of the terrain, the use of the LOD Quadtree Optimization.)
    2009-05-27 13:40:43下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载