-
sliding
说明: 求出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. )
- 2011-04-03 19:25:46下载
- 积分:1
-
stlviewer_src
对stl文件进行解析,并给出图形显示,处理stl文件。(Reading stl files, and give graphics)
- 2018-01-25 20:17:55下载
- 积分:1
-
这是关于几个数相加的一个简单例子,对初学者很有用
这是关于几个数相加的一个简单例子,对初学者很有用-This is the number of add on a few examples of a simple, very useful for beginners
- 2023-07-07 23:15:03下载
- 积分:1
-
基于STL的vector 使用方法演示。这里主要介绍Vector的操作。
基于STL的vector 使用方法演示。这里主要介绍Vector的操作。-STL
- 2022-03-22 12:26:28下载
- 积分:1
-
STLRead
读取stl文件的工具包,并通过demo演示工具包如何使用。并显示stl数据(Kit read stl file, and how to use the demo presentation tools package. Stl data is displayed)
- 2020-07-03 21:00:02下载
- 积分:1
-
map
C++ STL关于map的代码,里面详细说明了map的使用(n c++ STL code on the map, the map is described in detail)
- 2014-11-27 15:36:24下载
- 积分:1
-
Essential-CPP
本书为那些没有太多时间学习的程序员提供了一条在工作中学习C++的捷径。它把重点放在那些C++编程中重要的要素上,并覆盖能够帮助解决实际编程问题的特性和技术。
本书将C++的基本内容按照过程风格、泛型风格、基于对象风格,以及面向对象风格进行组织。本书采用复杂度渐进的风格展开,并在讨论解决方案的过程中引入语言特性,便于学习C++的功能和结构,同时理解其目的和基本理念。
书中完整深入探讨了以下主要内容:
泛型编程和标准模板库(STL)
基于对象的编程和类的设计面向对象的编程和类层次体系的设计
函数和类模板的设计和使用
异常处理和运行时类型信息(RTTI)(This book is not much time to learn those programmers provide a learning C++ at work as a shortcut. It focuses on those C++ programming on important elements, and covers issues that can help solve real programming features and technologies.
The book will be C++ style basic content in accordance with the process, the generic style, object-based style, and object-oriented style organization. This book uses a progressive style complexity unfold, and language features introduced in the process of discussing solutions, easy to learn C++ function and structure, and to understand its purpose and basic concepts.
The book explores the full depth of the following main elements:
Generic programming and the Standard Template Library (STL)
Programming and class design object-oriented programming and design objects class hierarchy based
Design and use functions and class template
Exception handling and runtime type information (RTTI))
- 2013-12-06 15:01:18下载
- 积分:1
-
RTS24_Load
用VC++的STL计算生成的IEEERTS-96的一年52周364天的每天24小时的负荷值的有名值,可用于计算电力系统的可靠性的分析(Calculated using VC++ the STL generated IEEERTS-96, 52 weeks a year a day, 364 days a famous 24-hour load value value can be used to calculate the reliability of the power system analysis)
- 2013-01-24 11:24:12下载
- 积分:1
-
CPP_STL
基本的STL的使用知识,涉及内容较全,如果全部掌握,对编程有很大帮助(Basic knowledge of the use of the STL involving than the whole, if all master programming)
- 2013-01-17 01:48:48下载
- 积分:1
-
FIR 数字滤波器分布式算法及其FPGA实现
FIR 数字滤波器分布式算法及其FPGA实现-FIR digital filter algorithms and FPGA
- 2022-04-09 22:44:47下载
- 积分:1