【单调队列】Sliding Window(C++)
描述给你n个数,求每部分连续的m个数里面的最大值最小值。http://poj.org/problem?id=2823输入The input consists of two lines. The first line contains two integers n and k which are the lengths of the array and the sliding window. There are n integers in the second line.输出There are
原创
2020-07-31 19:50:38 ·
313 阅读 ·
0 评论