-
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
-
Employee
这个小型企业工资管理系统是本人学习C++时自己做的。包含2000行左右的代码行。C++知识点基本都用到,如类,继承,多态,函数,指针等。代码结构清晰,严谨,界面友好。 (允许输入拉丁字符的拼音
中文(简体)英语日语
The small business payroll system is to learn C++, I do for myself. Contains about 2000 lines of code. C++ knowledge of basic points are used, such as classes, inheritance, polymorphism, function pointers. Code structure is clear, precise, user-friendly.)
- 2012-01-11 20:23:15下载
- 积分:1
-
cb_pcb_1
充电盒程序 用pic16F1828做主芯片(charger box program)
- 2014-07-24 18:35:27下载
- 积分:1
-
crossgate
说明: 梦想成为一名骑士的艾露.在前往目的地(自认为)的途中被不知名的魔法带到一个奇怪的地方..接下来...(Baby Magic Diablo server imitation robes best server.-Still magic PW server. Imitation of the official uniform of the best server)
- 2019-04-01 06:56:26下载
- 积分:1
-
这是 我编的一个小程序,请大家指点。 内容简介:计算机图形学的原理、算法及系统,并用c语言编写绘图程序。主要内容包括计算机图形学的发展概况、图形设备及系统;线段...
这是 我编的一个小程序,请大家指点。 内容简介:计算机图形学的原理、算法及系统,并用c语言编写绘图程序。主要内容包括计算机图形学的发展概况、图形设备及系统;线段、园、区域填充、线型线宽、字符、裁剪、等基本图形生成算法;样条、Bezier、B样条等常用曲线的概念、生成算法和性质;Coons曲面、Bezier曲面、B样条曲面等常用曲面的基本概念和生成算法;用c语言编写绘图程序。-This Part I of a small program, please guidance. Description : computer graphics principles, algorithms and systems, using the c language mapping procedures. The main contents include the development of computer graphics profiles, graphics equipment and systems; Line, the landscape, regional filling, linear linewidth, character, cutting, the basic graphics generation algorithm; Spline, Bezier and B-spline curves and other commonly used concepts, generating algorithm and nature; Coons Surface , Bezier curves, and B-spline surfaces commonly used surfaces such as the basic concepts and generating algorithm; c language with graphics procedures.
- 2022-04-01 02:41:43下载
- 积分:1
-
shijinzhiBCD
十进制-BCD码转换的代码在内,完整希望大家能用上。。(variable reg : integer range 0 to 80000
variable d1,d2,d3,d4 : std_logic_vector(3 downto 0)
begin
if clk100 event and clk100= 1 then
case current_state1 is
when st0=>
)
- 2011-06-12 10:08:03下载
- 积分:1
-
PMSM FOC V2.0 SENSORLESS(SPEED MODE)
基于STM32 V2.0电机库的无传感器FOC控制(Sensorless FOC control based on STM32 V2.0 motor Library)
- 2021-04-27 13:08:45下载
- 积分:1
-
render
GMS社区
846465456894897(GMS community 846465456894897)
- 2008-03-02 10:51:00下载
- 积分:1
-
matlab(MO--FANG)
Matlab模仿程序源代码,实现模仿游戏(Matlab imitate program source code, imitation game)
- 2015-01-13 22:14:34下载
- 积分:1
-
扫描识别
专门识别数字 和定位文本框,希望对大家有帮助。使用ocr拉布拉斯技术实现,希望对大家有用,谢谢!
- 2022-06-28 17:11:02下载
- 积分:1