-
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
-
CONENCT-BIZZ
Game to connect different cities roads.
- 2016-11-15 16:40:55下载
- 积分:1
-
STM32
说明: 基于stm32的红外感应防盗门设计,通过SIM卡发送报警信息(Stm32 based infrared induction security door design, through the SIM card send alarm information)
- 2020-06-21 15:00:02下载
- 积分:1
-
CSharp-lianliankan
4涛6太跳跳糖她3涛太3她4太3她3太涛3涛4太(6 4 Tao Tao too popping candy she too 3 3 3 her three of her four too too Tao Tao 3 4 too)
- 2013-12-03 20:50:36下载
- 积分:1
-
详细介绍图像的非线性曲线检测,程序测试成功,非常实用。...
详细介绍图像的非线性曲线检测,程序测试成功,非常实用。-Detailed images of the non-linear curve detection, program testing successful, very useful.
- 2023-08-22 03:10:04下载
- 积分:1
-
dpldc
RS485程序,包括接收部分判断校验,有很强的参考价值()
- 2018-07-09 10:43:26下载
- 积分:1
-
Windows读 USB口
Windows读 USB口
- 2015-05-09下载
- 积分:1
-
C语言实现数字图像处理
用底层C语言实现数字图像处理
1、windows位图和调试版;
2、图像的几何变换;
3、图像的平滑;
4、图像的修正和彩色变换;
5、腐蚀、膨胀和细化处理;
6、边缘检测提取、轮廓跟踪
- 2022-01-25 22:00:31下载
- 积分:1
-
65520790m5high
此程序能在MATLAB上实现低通滤波器,功能很强大(That this procedure can in MATLAB to achieve low-pass filter, a very powerful feature)
- 2009-01-07 21:37:54下载
- 积分:1
-
DSP_FFT
在DSP开发环境CCS3.3中利用c++语言实现快速傅里叶变换(In DSP development environment CCS3.3 using c++ language fast Fourier transform)
- 2013-10-18 20:30:06下载
- 积分:1