Bloomberg L.P. Interview Question: How to find out the most freq... | Glassdoor

Interview Question

Software Engineer Intern Interview(Student Candidate) New York, NY

How to find out the most frequently appeared number in an

  integer array?
Answer

Interview Answer

1 Answer

0

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.

Omar on Oct 18, 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.