Question d’entretien chez Microsoft

Given three lists, find all the common elements.

Réponse à la question d'entretien

Utilisateur anonyme

3 nov. 2011

Just count them with a heap. If the lists can have repeated elements, make sure the same element is not incremented more than once. Save the elements that hold a count greater than 3 and output them.