Pergunta de entrevista da empresa Amazon

Find out if the array has repeated numbers in it. (make it more time efficient)

Resposta da entrevista

Sigiloso

9 de fev. de 2012

Create a hash map for the array which maps every number to its frequency. If there exists an element with frequency > 1 => there is repetition! mapfrequency; // map