滑动窗口
This commit is contained in:
@@ -115,4 +115,14 @@ private:
|
||||
std::stack<int> _min_stk;
|
||||
};
|
||||
|
||||
/**
|
||||
* 剑指 Offer 59 - I. 滑动窗口的最大值
|
||||
*
|
||||
* @url https://leetcode.cn/leetbook/read/illustration-of-algorithm/58o46i/
|
||||
* @param nums
|
||||
* @param k
|
||||
* @return
|
||||
*/
|
||||
std::vector<int> max_sliding_window(std::vector<int>& nums, int k);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user