We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var maxSlidingWindow = function(nums, k) { let res = []; for (let i = k - 1; i < nums.length; i++) { let max = -Infinity; for (let j=i-k+1; j < i+1; j++) { max = Math.max(max, nums[j]); } res.push(max); } return res; };
The text was updated successfully, but these errors were encountered:
TODO:双端队列以及动态规划
Sorry, something went wrong.
No branches or pull requests
239. 滑动窗口最大值
解题思路——暴力法
复杂度分析
The text was updated successfully, but these errors were encountered: