Skip to content

Commit c28b7bd

Browse files
committed
Runtime: 65 ms (Top 73.60%) | Memory: 14 MB (Top 91.27%)
1 parent 90b3b8a commit c28b7bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/I/Intersection of Two Arrays/Intersection of Two Arrays.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 65 ms (Top 73.60%) | Memory: 14 MB (Top 91.27%)
12
class Solution:
23
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
34
nums1.sort()
@@ -14,4 +15,4 @@ def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
1415
ans.append(nums1[i])
1516
i += 1
1617
j += 1
17-
return ans
18+
return ans

0 commit comments

Comments
 (0)