登录
首页 » Visual C++ » sliding

sliding

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

  • TestImage
    Cimage类工具,能实现两张图片合成,单张图片拉伸,参数可以自己定义(Cimage class tool, can achieve two image synthesis, single image stretching, parameters can be defined by themselves)
    2018-08-16 09:26:20下载
    积分:1
  • GMRES
    本文件是gmres算法的c语言代码,大家都抓紧抢着下载哦。(This document is gmres algorithm c language code, everyone rushing to seize download oh.)
    2014-01-04 22:15:10下载
    积分:1
  • 红外遥控器按键检测程序
    红外遥控器按键检测程序,C代码源程序
    2022-01-26 20:00:38下载
    积分:1
  • 123
    字符串的查找删除功能以及提出子串数据功能(String search function and delete function string data were submitted)
    2011-11-30 22:06:22下载
    积分:1
  • STM32--mpu6050
    完成mpu6050的姿态角解算,包括卡尔曼,一阶以及二阶滤波算法(caculate the angels of the mpu6050)
    2021-04-04 19:39:04下载
    积分:1
  • StickyKey
    程序自动完成向“我的文档“下shiyan.docx发送字符c,程序运行前,shiyan.docx必须被word打开(Procedures automatically to the )
    2007-08-12 21:18:54下载
    积分:1
  • csol_wallhack
    CSOL透视防O3O5源代码(使用HLSDK编写)(据说是假的代码)(csol wallhack sources code(use HLSDK))
    2013-03-15 09:29:39下载
    积分:1
  • F2812-fft--TI
    Fast Fourier Transform (FFT). Using 8 points, takes about 1.2 ms to execute one FFT. Sets up General Purpose Timer 1 to generate events at 10 kHz. Will produce 10 kHz output on T1PWM and T1PWM pins.(Fast Fourier Transform (FFT). Using 8 points, takes about 1.2 ms to execute one FFT. Sets up General Purpose Timer 1 to generate events at 10 kHz. Will produce 10 kHz output on T1PWM and T1PWM pins.)
    2012-07-02 21:19:50下载
    积分:1
  • counter
    基于51单片机的计算器 ,采用C语言编写,可以实现简单的加减乘除功能,用八位数码显示。(counter based on as89s51)
    2011-01-01 10:21:28下载
    积分:1
  • RichTextBox
    RichTextBox带行号可滚动 RichTextBox with line numbers can scroll(RichTextBox with line numbers can scroll)
    2014-08-25 16:09:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载