Problem 2956 · Easy

Find Common Elements Between Two Arrays

Put each array in a hash set, then count the entries of each array that appear in the other set.

Open the interactive visualisation