diff --git a/arrays_and_strings/intersection_two_arrays.py b/arrays_and_strings/intersection_two_arrays.py index 984d2fd..cc91c7e 100644 --- a/arrays_and_strings/intersection_two_arrays.py +++ b/arrays_and_strings/intersection_two_arrays.py @@ -10,7 +10,7 @@ def intersect(nums1: list[int], nums2: list[int]) -> list[int]: counter = Counter(nums1) & Counter(nums2) for n in set_nums: - result.extend([n]*counter[n]) + result.extend([n] * counter[n]) return result