登录
首页 » Visual C++ » sliding

sliding

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

  • DSPfir
    这是一个综合性的仿真程序。包括:用matlab生成一个FIR滤波器,得到滤波器系数及阶数;再用C语言产生一个混合频率的数字信号,之后将生成的数据样点送入到DSP主程序进行数字滤波,DSP主程序算法用的是循环缓冲区算法,这一部分在CCS上实现。(This is a comprehensive simulation program. Comprising: generating a matlab FIR filter, to obtain the filter coefficients and order then mixed to produce a C-frequency digital signal, and then the resulting data samples into the main program to the DSP for digital filtering, DSP main algorithm using a circular buffer algorithm, this part of the CCS to achieve.)
    2013-09-15 21:16:30下载
    积分:1
  • main
    数码管静态显示源代码,可以直接调入工程使用(Static digital tube display the source code can be directly transferred to the engineering use)
    2013-05-09 17:13:13下载
    积分:1
  • c语言代理服务器
    用C语言实现的http代理服务器,可自己更改进行网站引导,网站屏蔽,用户屏蔽(HTTP proxy server implemented by C language can be changed for website guidance, website shielding, user shielding)
    2017-10-15 14:37:06下载
    积分:1
  • Digital-Image-Processing-3rd-Edition
    数字图像处理英文版第三版60多M~很难找到!!希望大家珍惜再珍惜!(digital image processing English and third version,about over 60 M, difficult to find ,hope everybody cherish it !)
    2012-11-29 10:46:26下载
    积分:1
  • 国外程序员编写的基于OpenGL的3D地形引擎 terrainEngine
    国外程序员编写的基于OpenGL的3D地形引擎。 errain Engine I started working on a terrain engine around October 2000. I was deeply moved by screenshots from black and white :) My intention and main goal was to create something visually stunning. This meant writing a terrain texture-generator, and working hard to find good textures and blending modes. The outcome is an engine that hold a (supposedly) 1km by 1km piece of terrain with very high accuracy. There is no triangle-cutting algorithm employed, simple brute-force. I use a large terrain texture and a tiling detail texture. There s a skybox and the terrain reflects on the water. I used OpenGL for this one, employing the OGLC skeleton to avoid most of the opengl-win32 business. You can move through this world using descent keys (a,z, keypad). use w to switch to wire-frame and d to render without the detail texture.(foreign programmers prepared by the OpenGL-based 3D terrain engine. Errain Engine I started working on a terrain eng stimulant around October 2000. I was deeply moved by sc reenshots from black and white : ) My intention and main goal was to create someth ing visually stunning. This meant writing a ter rain texture-generator, and working hard to find good blend textures and ing modes. The outcome is an engine that hold a ('s upposedly) 1km by 1km piece of terrain with very high accuracy. There is no triangle-cutting al gorithm employed. simple brute-force. I use a large terrain textu 're a tiling detail and texture. There's a skybox a nd the terrain reflects on the water. I used Open GL for this one. employing the OGLC skeleton to avoid most of the opengl- win32 business. You )
    2006-11-30 16:20:26下载
    积分:1
  • 130110
    控制蜂鸣器pic18单片机程序,测试通过,已批量生产。(Pic18 microcontroller program to control the buzzer)
    2014-01-24 10:44:16下载
    积分:1
  • PStechnology
    详细介绍了ps的基础技巧,让你从小白成为ps高手迈出了第一步。(Details of the ps of basic skills, so that you become ps from the white master the first step.)
    2013-12-28 20:40:28下载
    积分:1
  • add_noise_to_image
    为图像添加各种噪声,如高斯噪声、泊松噪声、椒盐噪声等。(需有openCV)(Add all kinds of noise for the image, such as Gaussian noise, Poisson noise, salt and pepper noise. (The need for openCV))
    2010-07-08 19:20:15下载
    积分:1
  • DP
    说明:  用c++编写的动态规划(DP)源程序。可用于水库调度等优化问题。(Using c++, prepared by Dynamic Programming (DP) source. And so can be used for reservoir operation optimization problem.)
    2009-08-12 11:40:48下载
    积分:1
  • wenMatlabFit_dn05
    利用Matlab工具在VC dotNet中实现聚点拟合以及直径测算的程序(Matlab tool in achieving VC dotNet accumulation diameter calculation and fitting procedures)
    2007-04-26 04:37:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载