登录
首页 » Visual C++ » sliding

sliding

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

  • VCdiary
    一个基于对话框的日记本小程序。以前在VC知识库中找基于对话框的序列化存储的程序一直没有找到,就自己做了一个。用到了链表和序列化,在对话框中使用工具栏,希望对大家有所帮助。首先,定义一个自己的结构体类,用来存储将要保存的信息。(a dialog based on the diary of the small procedures. In the past, VC knowledge base based on the dialog box to find the sequence of stored procedure has not been found, it had become one. Listless and used in the sequence, in the dialog box using the tool column, we hope to help. First, a definition of the structure type, will be used to store the information stored.)
    2006-08-15 22:58:35下载
    积分:1
  • MatlabEngine_link
    VC调用matlab的典型编程,采用matlab引擎的方法,成功实现了Vc对matlab的调用。并且做了可视化的界面。把程序中的main_edgelink2换成自己要调用的matlab程序(VC typical call Matlab programming using Matlab engine, the successful implementation of the Vc Matlab call. Done a visual interface. The procedures main_edgelink2 replaced by themselves to the calling procedure Matlab)
    2007-06-08 22:14:15下载
    积分:1
  • Agenda
    An Agenda for contacts
    2014-08-20 17:37:24下载
    积分:1
  • Closed_Model
    CLOSED BOOT CONVERTER
    2013-10-19 18:21:51下载
    积分:1
  • ST7567
    说明:  本程序是st7567驱动12864液晶显示采样串行方式驱动程序(This program is st7567 LCD driver 12864 driver serial sampling)
    2011-03-23 15:12:15下载
    积分:1
  • CWAVLETTh
    利用小波变化,进行滤波,去噪,通过模极大的去噪方法法,MATLAB的程序原代码,里面有很多程序及实例分析 (Using wavelet change, filtering, noise removal, modulus maxima de-noising method MATLAB program source code, there are a lot of procedures and examples)
    2012-08-23 21:58:59下载
    积分:1
  • adwa
    说明:  数值计算课后答案的解析,很有用的而且对上机超值(Numerical Analysis of after-school answer, very useful but on the machine value)
    2010-04-15 15:11:38下载
    积分:1
  • easyMule-src-080202
    easyMule-VeryCD-src-080202(源代码).rar easyMule 是VeryCD团队基于开源协议在eMule的基础上进行开发的一个全新产品,。(easyMule-VeryCD-src-080202 (source code). rareasyMule is VeryCD team eMule based on open-source agreement on the basis of the development of a new product.)
    2008-02-20 22:17:05下载
    积分:1
  • people000
    基于OPENCV的人数统计系统,可以对目标图像进行分析,可以统计出目标图像内的人数数量(OPENCV the number of statistical systems, the target image can be analyzed, you can count the number of people within the target number of images)
    2011-09-07 12:29:11下载
    积分:1
  • ppbNakagami
    处理Gamma乘性噪声的PPB方法,考虑了非局部patch的相似性,可处理SAR图像去噪。(The PPB method for multicative noise removal, which based on the Probabilistic Patch similarity.)
    2021-04-12 18:18:57下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载