Title: 字节&leetcode1:两数之和 · Issue #4 · sisterAn/JavaScript-Algorithms · GitHub
Open Graph Title: 字节&leetcode1:两数之和 · Issue #4 · sisterAn/JavaScript-Algorithms
X Title: 字节&leetcode1:两数之和 · Issue #4 · sisterAn/JavaScript-Algorithms
Description: 给定一个整数数组 nums 和一个目标值 target ,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] 附leetcode地址:leetcode 可结合 腾讯&leetcode15:三数之和 一起查看
Open Graph Description: 给定一个整数数组 nums 和一个目标值 target ,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] 附leetco...
X Description: 给定一个整数数组 nums 和一个目标值 target ,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] 附leetco...
Opengraph URL: https://github.com/sisterAn/JavaScript-Algorithms/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"字节\u0026leetcode1:两数之和","articleBody":"给定一个整数数组 `nums` 和一个目标值 `target` ,请你在该数组中找出和为目标值的那 **两个** 整数,并返回他们的数组下标。\r\n\r\n你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。\r\n\r\n**示例:**\r\n\r\n```js\r\n给定 nums = [2, 7, 11, 15], target = 9\r\n\r\n因为 nums[0] + nums[1] = 2 + 7 = 9\r\n所以返回 [0, 1]\r\n```\r\n\r\n附leetcode地址:[leetcode](https://leetcode-cn.com/problems/two-sum/solution/qian-duan-jin-jie-suan-fa-liang-shu-zhi-he-by-user/)\r\n\r\n可结合 [腾讯\u0026leetcode15:三数之和](https://github.com/sisterAn/JavaScript-Algorithms/issues/31) 一起查看","author":{"url":"https://github.com/sisterAn","@type":"Person","name":"sisterAn"},"datePublished":"2020-04-02T12:27:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/4/JavaScript-Algorithms/issues/4"}
| 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:d72afe74-a349-5b56-3323-46d2723c75b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9A4:20812F:416261:545733:696B091A |
| html-safe-nonce | c964fbd781988e613cb2097c9715a1e2c002d145a0f14a6894e1634f0646257d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUE0OjIwODEyRjo0MTYyNjE6NTQ1NzMzOjY5NkIwOTFBIiwidmlzaXRvcl9pZCI6IjI2NTE1NjI2ODQwMzIxNTc5NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a5c472191d29338d06e361b70801a430d680c0f755f370045a85a784ed0fc25a |
| hovercard-subject-tag | issue:592592402 |
| 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/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50db35b67affc43b213989344b51cec5cc887f7cb1eb31c2460b9432d0233a65/sisterAn/JavaScript-Algorithms/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50db35b67affc43b213989344b51cec5cc887f7cb1eb31c2460b9432d0233a65/sisterAn/JavaScript-Algorithms/issues/4 |
| og:image:alt | 给定一个整数数组 nums 和一个目标值 target ,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] 附leetco... |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width