Question d’entretien chez Morgan Stanley

Phone Screen: Check if two elements in an array equal to a sum or not?

Réponse à la question d'entretien

Utilisateur anonyme

12 nov. 2018

I solved it using HashSet to store complements of each number. If current number already exists in an HashSet that means we can form the sum

7