-
sliding
说明: 求出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. )
- 2011-04-03 19:25:46下载
- 积分:1
-
zuoye7
第k小元素(分治法) 给定一个线性序列集,要求求出其中指定的第K小的数的值和位置.如给定n个元素和一个整数i,1≤i≤n,输出这n个元素中第i小元素的值及其位置;(First k small element (divide and conquer) Given a set of linear sequence, where the specified requirements determined the K value and the small number of locations, such as a given n elements and an integer i, 1 ≤ i ≤ n, output this is the n elements of the i-th element value and the position of the small )
- 2013-11-16 11:51:31下载
- 积分:1
-
inphase
多基线干涉合成孔径雷达干涉条纹的获取,通过两幅单视复图像进行配准,获取干涉相位(Multi-baseline interferometric synthetic aperture radar interferometry fringes of the acquisition, through two single look complex image registration, access to intervention phase)
- 2011-08-03 08:07:08下载
- 积分:1
-
snap_picture
抓屏
通过对屏幕抓屏,进行监控,采用多线程方式(Capturing the Screen Capturing the Screen on the screen, the monitor, using multiple threads)
- 2006-07-11 09:54:59下载
- 积分:1
-
tabu-search
An algorithm for tabu search methode for solving optimization problems
- 2013-11-18 01:29:59下载
- 积分:1
-
SXWMIS
双学位管理系统。。。
主要是对学院的第二专业进行管理,采用MFC+ADO ACCE(Dual-degree management system. . . Mainly on the college)
- 2008-07-03 10:17:04下载
- 积分:1
-
RS232Demo
MFC编写的RS232 Demo,可供新手借鉴,VS可直接运行。(MFC RS232 Demo)
- 2021-01-04 13:09:01下载
- 积分:1
-
zhinengxinxi
智能信息,云计算,量子遗传算法,信息融合,大家共享(Intelligent information, cloud computing, quantum genetic algorithm, information fusion, we share)
- 2013-07-18 00:18:58下载
- 积分:1
-
stepover
晟矽微stepover系列示例代码,非常适合晟矽微单片机学习入门者。简单易学。(Sheng silicon micro stepover series sample code, very suitable for single-chip silicon micro Sheng learning beginners. Easy to learn.)
- 2014-12-26 22:42:43下载
- 积分:1
-
ethercat-Master-Code_Version-3.10
现场工业以太网,ethercat主站代码windows平台实现(The industrial Ethernet, the Windows platform to realize ethercat master station code)
- 2015-06-10 14:53:08下载
- 积分:1