POJ 2823 Sliding Window(单调队列)
2020-12-13 05:11
标签:des style blog http color os 看了大神们的博客,仿着写的,地址:点击进入 Description Your task is to determine the maximum and minimum values in the sliding window at each position. Input Output Sample Input Sample Output Source
POJ 2823 Sliding Window(单调队列),搜素材,soscw.com POJ 2823 Sliding Window(单调队列) 标签:des style blog http color os 原文地址:http://blog.csdn.net/u013582254/article/details/38017561
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
8 3
1 3 -1 -3 5 3 6 7
-1 -3 -3 -3 3 3
3 3 5 5 6 7
#include
上一篇:算法数据结构中有哪些奇技淫巧?
下一篇:python基础二
文章标题:POJ 2823 Sliding Window(单调队列)
文章链接:http://soscw.com/essay/30554.html