登录
首页 » Visual C++ » sliding

sliding

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

  • ktraregy__lock
    用高级语言编写和调试一个简单的文件系统,模拟文件管理的工作过程,(Written in a high-level language, and debug a simple file system, simulated the process of file management,)
    2017-04-14 18:10:46下载
    积分:1
  • QuartercarJJJ
    通过具有随机结构参数的四分之一车辆模型研究了具有不确定性结构参数的车辆在受到来自道路的随 机激励作用下的振动响应问题。将簧上质量、簧下质量、悬挂阻尼、悬挂刚度以及轮胎刚度均认为是随机变量。将路面的不平整引起的对车辆的激励看作高斯随机过程并通过简单指数功率谱密度来建立力学模型。(By a quarter vehicle model with random parameters studied vehicle structure uncertain structural parameters of the vibration by the random excitation the road response under question. The sprung mass, unsprung mass, suspension damping, suspension stiffness and rigidity of the tire are considered to be random variables. The excitation caused by uneven road vehicle regarded as Gaussian random process and to create a mechanical model of a simple exponential power spectral density.)
    2020-11-02 10:09:53下载
    积分:1
  • RS485_connection_process-for-C51
    在51单片机上实现RS485通讯,能够实现与上位机的通信(RS485 mode on 51 single, able to communicate with the host computer)
    2014-08-21 18:10:03下载
    积分:1
  • vcmatlab
    本程序是使用VC编写,在VC中调用MATLAB,由于MATLAB编写算法功能强大,所以与VC结合使用比较方便。(The program is written using the VC in the VC call MATLAB, MATLAB write algorithms as powerful, it is convenient in combination with the VC.)
    2010-05-08 21:12:30下载
    积分:1
  • VisualPCPPP2008rumenjingdian
    Visual+C+++2008入门经典(chinese).zip 中文翻译,精简(Visual+ C+++2008 Beginning (english). Zip Chinese translation, to streamline)
    2012-07-14 11:36:01下载
    积分:1
  • MotDePasse
    we creat un account and there is the password, but others couldn t see it except me
    2011-04-08 07:11:45下载
    积分:1
  • 例题13.1 一元二次方程及出错信息
    一元二次方程及出错信息,在程序中输入一元二次方程,获得解析解(A quadratic equation and error information. Enter a quadratic equation in the program, access to analytic solution)
    2018-03-03 12:37:09下载
    积分:1
  • 粒子群优化算法C
    同遗传算法比较,PSO的优势在于简单容易实现并且没有许多参数需要调整。目前已广泛应用于函数优化,神经网络训练,模糊系统控制以及其他遗传算法的应用领域(comparison with the genetic algorithm, the advantages of PSO is simple and easy to achieve without many parameters need to be adjusted. Now it has been widely used function optimization, neural networks, fuzzy systems control and other genetic algorithm applications)
    2005-08-01 11:58:27下载
    积分:1
  • 2
    说明:  该程序是基于MATLAB的磁悬浮系统连续控制的具体程序实现(The program is based on the specific program MATLAB maglev system to achieve continuous control)
    2014-02-18 18:17:40下载
    积分:1
  • fx
    说明:  以网络通讯为基础,客户端输入指令,得到反馈,在客户端和服务器端显示opengl模型,并控制模型的运动(base on the communication of network,client type the key ,the sever respond at the same time client and the sever show the live result on the screen.)
    2011-05-04 17:04:09下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载