mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 03:34:02 +08:00
更新 0349.两个数组的交集.md 错别字修正
This commit is contained in:
@ -121,7 +121,7 @@ Python:
|
|||||||
```python
|
```python
|
||||||
class Solution:
|
class Solution:
|
||||||
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
|
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
|
||||||
return list(set(nums1) & set(nums2)) # 两个数组线变成集合,求交集后还原为数组
|
return list(set(nums1) & set(nums2)) # 两个数组先变成集合,求交集后还原为数组
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user