-
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
-
poisson_c
在偏微分方程的数值求解中,有一类很重要的问题就是求解有奇异点的泊松方程,此程序是用C写的并行程序,能极大的提高泊松方程的求解(In the numerical solution of partial differential equations, there is a class of very important issues that have a singular point of solving the Poisson equation, this program is written in C parallel programs, can greatly improve the solution of the Poisson equation)
- 2013-12-05 22:47:33下载
- 积分:1
-
串口1接收5发送
说明: STM32F103,DMX512串口1接收,串口5发送(sorry my english is not good. this is abaout STM32 DMX512 USART)
- 2019-01-02 18:27:12下载
- 积分:1
-
步进电机PID调速
由于增量式PID输出的是控制量增量,如果计算机出现故障,误动作影响较小,而执行机构本身有记忆功能,可仍保持原位,不会严重影响系统的工作,而位置式的输出直接对应对象的输出,因此对系统影响较大。
- 2022-04-23 13:06:50下载
- 积分:1
-
WSAChat
一个漂亮的聊天对话框程序,不错吼,好了,今天传 了这么多了,主人要是再不让我下,我真的要汔死了,所有的好东西都传上去了,(a nice chat dialog procedures, sounds good, a good that today- so many, If the owner did not allow me again, I really want to countries in the death, all the good things- up, and)
- 2007-01-25 14:40:06下载
- 积分:1
-
xiaobotuxiangquzao
小波图像去噪的matlab程序,实现多种阀值之间的比较(Wavelet image denoising Matlab program, a variety of threshold comparison between)
- 2012-04-14 22:05:16下载
- 积分:1
-
32 水质检测
说明: 利用32单片机实现水质检测功能,可以应用到无人船等地方(Water quality testing)
- 2020-10-24 11:27:39下载
- 积分:1
-
一元多项式的链表实现
拥有term项类 链表节点类 链表类 以及多项式类 重载输入函数...
一元多项式的链表实现
拥有term项类 链表节点类 链表类 以及多项式类 重载输入函数-One of the list of the polynomial has a term of realization of node-type chain-type chain-type, as well as polynomial-type input function overloading
- 2022-05-30 08:36:21下载
- 积分:1
-
POJ1007
北京大学ACM POJ1007题
实现了对字符串按逆序排列(Peking ACM POJ1007 title achieved by reverse order of string)
- 2010-11-03 00:00:52下载
- 积分:1
-
redbook
Opengl编程指南(第七版)源码, 自行配制好glut之后就可以跑了(Opengl Programming Guide (Seventh Edition) source, self-prepared after a good run glut on it)
- 2015-04-02 11:21:16下载
- 积分:1