Duplicate Duplicates


Collapse Content

You need to find duplicate numbers again! This time, there can be multiple duplicates, so find the number that appears the most times.

For example, in the list {1, 1, 2, 3, 2, 2}, the number 2 appears 3 times, more than any other number.

The numbers are all in the range from 0 to 100.

Challenge

Print the number in each list that appears the most times.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Comments

  • Wouldn't have been able to do it without the hint.
    My code is not at all "beautiful", "efficient", or "elegant", but for those who have no idea how to do it, here's my solution. my code

Contact Us
Sign in or email us at [email protected]