Skip to content

349. Intersection of Two Arrays#21

Open
hayashi-ay wants to merge 4 commits intomainfrom
hayashi-ay-patch-10
Open

349. Intersection of Two Arrays#21
hayashi-ay wants to merge 4 commits intomainfrom
hayashi-ay-patch-10

Conversation

@hayashi-ay
Copy link
Copy Markdown
Owner

```python
class Solution:
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
return set(nums1) & set(nums2)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

listでなくsetが返っている

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant