登录
首页 » Visual C++ » sliding

sliding

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

  • lpc2368-CAN
    带ID的lpc2368 CAN通信,包括初始化、中端、CAN通信和串口通信(With the ID lpc2368 CAN communications, including initialization, in the end, CAN communications and serial communication)
    2020-07-03 08:40:01下载
    积分:1
  • beginning-directx-11-game-programming
    Many of us wish to create our own video games. For some, gaming is a hobby, and for others it is something fun to participate in casually. But for the rest of us, gaming and the dream of making our own games is more like a passion. Chances are, if you’ve purchased this book, you are looking to turn your desire and passion into something you can play and share with others.
    2013-12-20 01:00:40下载
    积分:1
  • WL_IPpack02
    获得IP地址和MAC地址的对应关系网络课实验。 根据IP地址发送和接受ARP包获得对应MAC地址。(Access to correspondence between the experimental class network IP address and MAC address. Send and receive ARP packets to obtain the corresponding MAC addresses based on IP addresses.)
    2014-05-21 08:56:22下载
    积分:1
  • FF-RLST
    系统辨识中的递归最小二乘参数估计的matlab程序算法(System Identification of recursive least-squares parameter estimation algorithm matlab program)
    2011-10-18 15:53:08下载
    积分:1
  • ray2mesh-1.0.tar
    用于2维的射线追踪,也可以用于地震资料的层析成像(For 2-dimensional ray tracing, seismic data can also be used for the tomographic imaging)
    2008-04-26 09:42:01下载
    积分:1
  • 06_DS18B20
    DS18B20温度测量实验 功能:在数码管上显示当前DS18B20测到的温度 小数部分为4位,温度为负时,最高位显示"-" 测量范围:-55℃ ~ +125℃(DS18B20 temperature measurement test functions: in the digital tube displays the current measured temperature of DS18B20 fractional portion 4, the temperature is negative, the highest display " -" Measuring range:-55 ℃ ~+125 ℃)
    2010-01-13 09:00:49下载
    积分:1
  • Bloom
    Bloom效果(附代码), 很酷的一个效果,效率不算高。互相交流一下。看看吧!(Bloom effect (with code), a cool effect, efficiency is not high. Exchange about. Let' s see it!)
    2010-02-02 17:14:45下载
    积分:1
  • gene
    说明:  主要是基因识别的 matlab程序 一种全新的算法(Gene identification is mainly a new algorithm matlab program)
    2011-04-11 20:42:14下载
    积分:1
  • alphafx
    An article with code on how to create the Alpha effect (fading in and out effect). Starts with the application of alpha on images, and ends with the creation of alpha animation. This is NOT about the Per Pixel Alpha Blend used in Windows. (An article with code on how to create the Alpha effect (fading in and out effect). Starts with the application of alpha on images, and ends with the creation of alpha animation. This is NOT about the Per Pixel Alpha Blend used in Windows. )
    2014-09-28 20:19:09下载
    积分:1
  • pca
    这篇文章是盲信号处理,因为是英文文章,所以大家看内容就好了。(Principal component analysis (PCA) is a mainstay of modern data analysis- a black box that is widely used but poorly understood. The goal of this paper is to dispel the magic behind this black box. This tutorial focuses on building a solid intuition for how and why principal component analysis works furthermore, it crystallizes this knowledge by deriving from simple intuitions, the mathematics behind PCA . This tutorial does not shy away from explaining the ideas informally, nor does it shy away from the mathematics. The hope is that by addressing both aspects, readers of all levels will be able to gain a better understanding of PCA as well as the when, the how and the why of applying this technique.)
    2011-10-17 09:07:08下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载