Title: leetcode239:滑动窗口最大值问题 · Issue #33 · sisterAn/JavaScript-Algorithms · GitHub
Open Graph Title: leetcode239:滑动窗口最大值问题 · Issue #33 · sisterAn/JavaScript-Algorithms
X Title: leetcode239:滑动窗口最大值问题 · Issue #33 · sisterAn/JavaScript-Algorithms
Description: 给定一个数组 nums 和滑动窗口的大小 k,请找出所有滑动窗口里的最大值。 示例: 输入: nums = [1,3,-1,-3,5,3,6,7], 和 k = 3 输出: [3,3,5,5,6,7] 解释: 滑动窗口的位置 最大值 [1 3 -1] -3 5 3 6 7 3 1 [3 -1 -3] 5 3 6 7 3 1 3 [-1 -3 5] 3 6 7 5 1 3 -1 [-3 5 3] 6 7 5 1 3 -1 -3 [5 3 6] 7 6 1 3 -1 -3 ...
Open Graph Description: 给定一个数组 nums 和滑动窗口的大小 k,请找出所有滑动窗口里的最大值。 示例: 输入: nums = [1,3,-1,-3,5,3,6,7], 和 k = 3 输出: [3,3,5,5,6,7] 解释: 滑动窗口的位置 最大值 [1 3 -1] -3 5 3 6 7 3 1 [3 -1 -3] 5 3 6 7 3 1 3 [-1 -3 5] 3 6 7 5 1 3 -1 [-3 5 3...
X Description: 给定一个数组 nums 和滑动窗口的大小 k,请找出所有滑动窗口里的最大值。 示例: 输入: nums = [1,3,-1,-3,5,3,6,7], 和 k = 3 输出: [3,3,5,5,6,7] 解释: 滑动窗口的位置 最大值 [1 3 -1] -3 5 3 6 7 3 1 [3 -1 -3] 5 3 6 7 3 1 3 [-1 -3 5] 3 6 7 5 1 3 -1 [-3 5 3...
Opengraph URL: https://github.com/sisterAn/JavaScript-Algorithms/issues/33
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"leetcode239:滑动窗口最大值问题","articleBody":"给定一个数组 `nums` 和滑动窗口的大小 `k`,请找出所有滑动窗口里的最大值。\r\n\r\n**示例:**\r\n\r\n```js\r\n输入: nums = [1,3,-1,-3,5,3,6,7], 和 k = 3\r\n输出: [3,3,5,5,6,7] \r\n```\r\n\r\n**解释:** \r\n\r\n\u003e 滑动窗口的位置 最大值\r\n\u003e\r\n\u003e [1 3 -1] -3 5 3 6 7 3\r\n\u003e 1 [3 -1 -3] 5 3 6 7 3\r\n\u003e 1 3 [-1 -3 5] 3 6 7 5\r\n\u003e 1 3 -1 [-3 5 3] 6 7 5\r\n\u003e 1 3 -1 -3 [5 3 6] 7 6\r\n\u003e 1 3 -1 -3 5 [3 6 7] 7\r\n\r\n\r\n**提示:**\r\n\r\n你可以假设 `k` 总是有效的,在输入数组不为空的情况下,1 ≤ k ≤ 输入数组的大小。\r\n\r\n附赠leetcode地址:[leetcode](https://leetcode-cn.com/problems/sliding-window-maximum/solution/javascriptjie-leetcodehua-dong-chuang-kou-zui-da-z/)","author":{"url":"https://github.com/sisterAn","@type":"Person","name":"sisterAn"},"datePublished":"2020-05-06T13:10:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/33/JavaScript-Algorithms/issues/33"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a6ea7338-021a-df8a-d04a-4ba8f6e6c57c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9810:1B1D69:180D217:2129841:696AA0C6 |
| html-safe-nonce | fc6a7ee53d24e36a1bd96ef240dc777c0808a547047e94422973ef8d3ff29938 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODEwOjFCMUQ2OToxODBEMjE3OjIxMjk4NDE6Njk2QUEwQzYiLCJ2aXNpdG9yX2lkIjoiMjg2MDk1MzUzNjY5MTg3MTk0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8399791dda74ac3d32afa91c11a351964f351190ebc5f0071fb40ef227983fc6 |
| hovercard-subject-tag | issue:613307566 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sisterAn/JavaScript-Algorithms/33/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3e9dc9a73231e78eeb3175e93830e6cbc89406a9ab276b2ffcfb25382b6bf99/sisterAn/JavaScript-Algorithms/issues/33 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3e9dc9a73231e78eeb3175e93830e6cbc89406a9ab276b2ffcfb25382b6bf99/sisterAn/JavaScript-Algorithms/issues/33 |
| og:image:alt | 给定一个数组 nums 和滑动窗口的大小 k,请找出所有滑动窗口里的最大值。 示例: 输入: nums = [1,3,-1,-3,5,3,6,7], 和 k = 3 输出: [3,3,5,5,6,7] 解释: 滑动窗口的位置 最大值 [1 3 -1] -3 5 3 6 7 3 1 [3 -1 -3] 5 3 6 7 3 1 3 [-1 -3 5] 3 6 7 5 1 3 -1 [-3 5 3... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sisterAn |
| hostname | github.com |
| expected-hostname | github.com |
| None | a51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261 |
| turbo-cache-control | no-preview |
| go-import | github.com/sisterAn/JavaScript-Algorithms git https://github.com/sisterAn/JavaScript-Algorithms.git |
| octolytics-dimension-user_id | 19721451 |
| octolytics-dimension-user_login | sisterAn |
| octolytics-dimension-repository_id | 252061924 |
| octolytics-dimension-repository_nwo | sisterAn/JavaScript-Algorithms |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 252061924 |
| octolytics-dimension-repository_network_root_nwo | sisterAn/JavaScript-Algorithms |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4bd0eac606c70914085176ef312ebdcd97a8cdf1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width