登录
首页 » Visual C++ » sliding

sliding

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

  • 24
    2005-11-23 10:19:33下载
    积分:1
  • piny
    说明:  51单片机的拼音输入法的程序,用C实现,(51 SCM Pinyin input method to the procedures used to achieve C,)
    2006-04-11 19:45:14下载
    积分:1
  • 图像识别 人脸识别和虹膜识别
    提供了图像识别,包括人脸识别和虹膜识别,是不可多得的程序(for image recognition, face recognition and iris recognition, is a rare procedure)
    2020-06-26 09:00:01下载
    积分:1
  • Tyunnnanbaizzh
    这是关于云南白族村的vrml原码,如果看代码,,请用vrmlpad编辑器打开,如果预览请用bs. (This is on the Yunnan Bai village in the vrml the original code, if we look at the code, open with vrmlpad editor preview with bs.)
    2012-07-11 08:06:52下载
    积分:1
  • LED-displays-in-C-language
    AT89C51+液晶显示屏,按输入字符输出相应的显示,源代码为C语言编写,希望对大家有帮助。(The LCD of AT89C51+ screen display output according to the input character, the source code is written in C language, we hope to help.)
    2013-04-07 21:53:55下载
    积分:1
  • 转载libmodebus库的测试文件
    转载libmodebus库的测试文件,从站是用软件测试的,如果要用单片机当从站,修改那八个字节的参数即可。用的是QT开发软件,可以修改mainwindows的内容。
    2022-10-29 09:45:03下载
    积分:1
  • Dijkstra
    Dijkstra算法的实现,任意结点数无向不加权图的dijkstra最短路径实现,能读入所给的.txt文件 (Dijkstra algorithm, arbitrary nodes undirected unweighted graph dijkstra shortest path to achieve, to read the given. Txt files)
    2010-05-26 12:07:21下载
    积分:1
  • bds2006_cpp_vectserial
    vector control of induction motor
    2012-05-16 04:15:47下载
    积分:1
  • MiniGIS
    该程序可以读取坐标文件,画出中国地图,是一个很不错的vc程序,对初学者很有用。(The program can read the coordinates of the document, draw the map of China, is a very good vc procedures, very useful for beginners.)
    2014-03-22 22:48:26下载
    积分:1
  • shiyan4
    广东工业大学计算机学院操作系统4源代码 (Guangdong University of Computer Science 4 source code operating system)
    2013-01-15 17:20:42下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载