登录
首页 » Visual C++ » sliding

sliding

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

  • 新建文本文档 (4)
    说明:  实现material studio多晶型物预测(Realize the prediction of material studio polycrystalline)
    2020-02-11 17:25:02下载
    积分:1
  • ClockTst
    WIN32编写的时钟应用程序 自绘控件及菜单具有一定参考价值(WIN32 written Clock application has some reference value since the draw controls and menus)
    2015-06-05 08:36:18下载
    积分:1
  • Biot-Savat
    根据物理学的毕奥-萨法尔定理,计算环形线圈周围电磁场的强度。。(According to physics, Biot- Safar theorem, calculate the intensity of electromagnetic field around the circular coil. .)
    2010-10-01 19:00:18下载
    积分:1
  • 2
    说明:  电子地图管理系统,实现文件的读取,检索,与排序(Electronic map management system, document read, search, and sort)
    2013-07-07 15:52:11下载
    积分:1
  • DANCISHU
    统计一段文字中单词的数目,程序可运行,效果正确(The number of words in a text statistics, the program can be run, the effect is correct)
    2014-12-07 20:04:38下载
    积分:1
  • EXCEL
    VC EXCEL接口:workbook worksheet 等一系列操作接口(excel interface IN vc)
    2013-11-28 14:46:44下载
    积分:1
  • dll
    仿真足球机器人SimuroSot 5vs5 .dll文件,用于比赛或测试(Simulation robot SimuroSot 5vs5. Dll file for competition or test)
    2020-12-06 16:39:21下载
    积分:1
  • Matlab
    matlab数理统计数据箱 学习matlab很有用(matlab mathematics matlab statistical data useful for me to learn)
    2008-05-15 21:08:32下载
    积分:1
  • GDP
    把名为GDP的文件中的各项内容提取出来,即读字符,然后在屏幕上整齐排列输出(The GDP of the file name of the content is extracted, that is, reading characters, and then neatly arranged on the screen output)
    2010-05-15 18:10:16下载
    积分:1
  • msp430f5438system_Chinese-Materials
    msp430f5438系统中文资料(全)(msp430f5438system_Chinese Materials)
    2013-09-09 09:12:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载