Title: 字节:N数之和 · Issue #128 · sisterAn/JavaScript-Algorithms · GitHub
Open Graph Title: 字节:N数之和 · Issue #128 · sisterAn/JavaScript-Algorithms
X Title: 字节:N数之和 · Issue #128 · sisterAn/JavaScript-Algorithms
Description: 请用算法实现,从给定的无需、不重复的数组A中,取出N个数,使其相加和为M。并给出算法的时间、空间复杂度,如: var arr = [1, 4, 7, 11, 9, 8, 10, 6]; var N = 3; var M = 27; Result: [7, 11, 9], [11, 10, 6], [9, 8, 10]
Open Graph Description: 请用算法实现,从给定的无需、不重复的数组A中,取出N个数,使其相加和为M。并给出算法的时间、空间复杂度,如: var arr = [1, 4, 7, 11, 9, 8, 10, 6]; var N = 3; var M = 27; Result: [7, 11, 9], [11, 10, 6], [9, 8, 10]
X Description: 请用算法实现,从给定的无需、不重复的数组A中,取出N个数,使其相加和为M。并给出算法的时间、空间复杂度,如: var arr = [1, 4, 7, 11, 9, 8, 10, 6]; var N = 3; var M = 27; Result: [7, 11, 9], [11, 10, 6], [9, 8, 10]
Opengraph URL: https://github.com/sisterAn/JavaScript-Algorithms/issues/128
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"字节:N数之和","articleBody":"请用算法实现,从给定的无需、不重复的数组A中,取出N个数,使其相加和为M。并给出算法的时间、空间复杂度,如:\r\n```js\r\nvar arr = [1, 4, 7, 11, 9, 8, 10, 6];\r\nvar N = 3;\r\nvar M = 27;\r\n\r\nResult:\r\n[7, 11, 9], [11, 10, 6], [9, 8, 10]\r\n```","author":{"url":"https://github.com/sisterAn","@type":"Person","name":"sisterAn"},"datePublished":"2020-11-15T23:58:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/128/JavaScript-Algorithms/issues/128"}
| 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:8e4f4f98-5590-2b77-4875-50365a7120de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C0E:1B7E6F:22324D6:2EE09BC:696ABCBB |
| html-safe-nonce | f17cd76ef29de8ab83d1a8b4aa458a1dd27f5e2a2ff3eb33143efc455d70eb8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzBFOjFCN0U2RjoyMjMyNEQ2OjJFRTA5QkM6Njk2QUJDQkIiLCJ2aXNpdG9yX2lkIjoiMTg4MzQwODY0MjEzNTk5NzYyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 97ef64af0715ed7e46a997fc4f9fb346642e9559dd49f03823deeaaeed8d9455 |
| hovercard-subject-tag | issue:743377573 |
| 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/128/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc86455dfd477c435405b7fc3fbb4d0b33016f6fa98e3991c3704e499de2b3d9/sisterAn/JavaScript-Algorithms/issues/128 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc86455dfd477c435405b7fc3fbb4d0b33016f6fa98e3991c3704e499de2b3d9/sisterAn/JavaScript-Algorithms/issues/128 |
| og:image:alt | 请用算法实现,从给定的无需、不重复的数组A中,取出N个数,使其相加和为M。并给出算法的时间、空间复杂度,如: var arr = [1, 4, 7, 11, 9, 8, 10, 6]; var N = 3; var M = 27; Result: [7, 11, 9], [11, 10, 6], [9, 8, 10] |
| 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 | 46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b |
| 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 | 30300f30bb3949de255e84a146706a3bdb5c19c9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width