0

Most occurer

Write a code by which we can find that which number occurs most. If there is a tie then it should print both numbers and so on. First input would be no. Of numbers to be checked. Then numbers would be given. Ex. Input 5 2 3 1 2 3 Output should be 2 3 or 3 2

29th Aug 2017, 6:38 AM
Navneet Prabhat
Navneet Prabhat - avatar
1 ответ
+ 2
Here you go. Checks for valid input. https://code.sololearn.com/cZcnbfhqEQYU/?ref=app
29th Aug 2017, 8:36 AM
Vari93
Vari93 - avatar