Most occurer | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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