Bloomberg Interview Question

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

Interview Answer

Anonymous

Oct 19, 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.