+ 7

[ CHALLENGE ] "Find mode"

You need to find the number which repeat maximum number of time in string example : 12223 output : 2 because it repeat 3 times if there are two numbers which repeat same number of time then print both the numbers example : 12233 output : 2 3 input A string containing numbers output number which repeat maximum number of time sample input 122232 sample output 2

7th Dec 2017, 2:38 PM
Ronak Pareek
Ronak Pareek - avatar
5 ответов
7th Dec 2017, 5:34 PM
LukArToDo
LukArToDo - avatar
+ 10
7th Dec 2017, 6:28 PM
Justine Ogaraku
Justine Ogaraku - avatar
+ 4
https://code.sololearn.com/c05rjp6YQdmp/?ref=app
8th Dec 2017, 1:49 AM
Marfik Em
Marfik Em - avatar