Skip to content

Commit 6b39dc3

Browse files
authored
Update intersection-of-three-sorted-arrays.py
1 parent 5fd2ae3 commit 6b39dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/intersection-of-three-sorted-arrays.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def arraysIntersection(self, arr1, arr2, arr3):
3838
:type arr3: List[int]
3939
:rtype: List[int]
4040
"""
41-
intersect = reduce(set.intersection, map(set, [arr1, arr2, arr3]))
41+
intersect = reduce(set.intersection, map(set, [arr2, arr3]))
4242
return [x for x in arr1 if x in intersect]

0 commit comments

Comments
 (0)