From 2d0842019de4c72b72b069852805ef3d067cb34d Mon Sep 17 00:00:00 2001 From: marina <138340846+bt3gl-cryptographer@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:31:08 -0700 Subject: [PATCH] Update intersection_two_arrays.py --- arrays_and_strings/intersection_two_arrays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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