+ 12

🔡 [Challenge] : How  to return highest occurred character in a String?  🏆🏆

Note : Input a Single String For example : INPUT : aaaaaaaaaaaabbbbcddddeeegjkkkkeee OUTPUT : a INPUT : agaggsssssssssshhhjsjsjkk OUTPUT : s Best of Luck ( ße creative) + welcome any Language

6th Feb 2018, 5:16 PM
P∆WAN M∆URY∆
P∆WAN M∆URY∆ - avatar
15 Answers
7th Feb 2018, 9:37 AM
LukArToDo
LukArToDo - avatar
+ 14
https://code.sololearn.com/cIdPxcHjWXc9/?ref=app
7th Feb 2018, 7:19 AM
David Ashton
David Ashton - avatar
7th Feb 2018, 5:13 AM
VISHAL SRIVASTAVA
VISHAL SRIVASTAVA - avatar
+ 8
https://code.sololearn.com/c8YsgTZi6TTN/#py
6th Feb 2018, 7:16 PM
Pedro Demingos
Pedro Demingos - avatar
6th Feb 2018, 7:34 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 6
I will try in c
7th Feb 2018, 1:49 AM
SAKSHI
SAKSHI - avatar
+ 6
python: print all most common items and nr if occurences from collections import Counter print(Counter(input()).most_common(1))
7th Feb 2018, 4:30 AM
VcC
VcC - avatar
+ 5
@Petr Leliaev most occurrence of the character in input string
6th Feb 2018, 5:34 PM
P∆WAN M∆URY∆
P∆WAN M∆URY∆ - avatar
6th Feb 2018, 10:26 PM
Jahudiel Helí
Jahudiel Helí - avatar
29th Sep 2020, 8:12 AM
Minho
Minho - avatar
+ 4
I added the number of occurences of the character to the output. https://code.sololearn.com/cjKH0x005g6t/?ref=app
6th Feb 2018, 5:58 PM
davy hermans
davy hermans - avatar
6th Feb 2018, 6:04 PM
Petr Leliaev
Petr Leliaev - avatar
+ 2
What do you mean by "highest character"?
6th Feb 2018, 5:26 PM
Petr Leliaev
Petr Leliaev - avatar
6th Oct 2020, 9:43 PM
Kavoos Salahi
Kavoos Salahi - avatar