Pergunta de entrevista da empresa Bloomberg

How to find out the most frequently appeared number in an integer array?

Resposta da entrevista

Sigiloso

19 de out. de 2015

The easiest way would be to create a map that holds the count for each number. Then iterate over and check which one has the highest count.