Compute the number of common elements between two lists.
Constraints
Example
>>> intersection_size([1, 2, 2, 3], [2, 3, 4]) 2 >>> intersection_size([], [1, 2]) 0 >>> intersection_size(['a', 'b'], ['b', 'c']) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints