Title: 腾讯&leetcode:给定两个数组,编写一个函数来计算它们的交集 · Issue #6 · sisterAn/JavaScript-Algorithms · GitHub
Open Graph Title: 腾讯&leetcode:给定两个数组,编写一个函数来计算它们的交集 · Issue #6 · sisterAn/JavaScript-Algorithms
X Title: 腾讯&leetcode:给定两个数组,编写一个函数来计算它们的交集 · Issue #6 · sisterAn/JavaScript-Algorithms
Description: 给定两个数组,编写一个函数来计算它们的交集。 示例 1: 输入: nums1 = [1,2,2,1], nums2 = [2,2] 输出: [2] 示例 2: 输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4] 输出: [9,4] 说明: 输出结果中的每个元素一定是唯一的。 我们可以不考虑输出结果的顺序。 附leetcode地址:leetcode
Open Graph Description: 给定两个数组,编写一个函数来计算它们的交集。 示例 1: 输入: nums1 = [1,2,2,1], nums2 = [2,2] 输出: [2] 示例 2: 输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4] 输出: [9,4] 说明: 输出结果中的每个元素一定是唯一的。 我们可以不考虑输出结果的顺序。 附leetcode地址:leetcode
X Description: 给定两个数组,编写一个函数来计算它们的交集。 示例 1: 输入: nums1 = [1,2,2,1], nums2 = [2,2] 输出: [2] 示例 2: 输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4] 输出: [9,4] 说明: 输出结果中的每个元素一定是唯一的。 我们可以不考虑输出结果的顺序。 附leetcode地址:leetcode
Opengraph URL: https://github.com/sisterAn/JavaScript-Algorithms/issues/6
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"腾讯\u0026leetcode:给定两个数组,编写一个函数来计算它们的交集","articleBody":"给定两个数组,编写一个函数来计算它们的交集。\r\n\r\n**示例 1:**\r\n\r\n```js\r\n输入: nums1 = [1,2,2,1], nums2 = [2,2]\r\n输出: [2]\r\n```\r\n\r\n\r\n**示例 2:**\r\n\r\n```js\r\n输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4]\r\n输出: [9,4]\r\n```\r\n\r\n**说明:**\r\n\r\n输出结果中的每个元素一定是唯一的。\r\n我们可以不考虑输出结果的顺序。\r\n\r\n附leetcode地址:[leetcode](https://leetcode-cn.com/problems/intersection-of-two-arrays/solution/liang-ge-shu-zu-de-jiao-ji-by-user7746o/)","author":{"url":"https://github.com/sisterAn","@type":"Person","name":"sisterAn"},"datePublished":"2020-04-05T14:58:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":30},"url":"https://github.com/6/JavaScript-Algorithms/issues/6"}
| 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:07e27ddf-4433-9b93-51c8-1877ce4d9aed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4F6:1D778D:EC214B:14BCA4C:696A688C |
| html-safe-nonce | 2dd423350dff8c7425b33b0609005e069ff7572be724d83aa161d73aad581118 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEY2OjFENzc4RDpFQzIxNEI6MTRCQ0E0Qzo2OTZBNjg4QyIsInZpc2l0b3JfaWQiOiIzMzEwMzAxMDY4MjYzMDU3NTQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 95725bd5c896ce977a6b4f36ccb7c3ece9cf5126cd1ff99f420f59fc121615f1 |
| hovercard-subject-tag | issue:594499672 |
| 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/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea4a645aad4cf4398ec91273f98ce718db5fb8a7944f1f7a4c4baef25aaae4a4/sisterAn/JavaScript-Algorithms/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea4a645aad4cf4398ec91273f98ce718db5fb8a7944f1f7a4c4baef25aaae4a4/sisterAn/JavaScript-Algorithms/issues/6 |
| og:image:alt | 给定两个数组,编写一个函数来计算它们的交集。 示例 1: 输入: nums1 = [1,2,2,1], nums2 = [2,2] 输出: [2] 示例 2: 输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4] 输出: [9,4] 说明: 输出结果中的每个元素一定是唯一的。 我们可以不考虑输出结果的顺序。 附leetcode地址:leetcode |
| 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 | 6fea32d5b7276b841b7a803796d9715bc6cfb31ed549fdf9de2948ac25d12ba6 |
| 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 | f2d9f6432a5a115ec709295ae70623f33bb80aee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width