摘要: 239. 滑动窗口最大值 错误示例:在k=50000超时,O(n*k) class Solution { public: int getMax(vector<int>& nums,int a,int b) { int max = nums[a]; for (int i = a+1; i <= b; 阅读全文
posted @ 2024-04-01 21:28 daydayup_cpp 阅读(19) 评论(0) 推荐(0)