+ 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
5 Answers
+ 10
Also accommodates letters :
https://code.sololearn.com/cBqWw0jLyyrH/?ref=app
+ 4
https://code.sololearn.com/c05rjp6YQdmp/?ref=app