Skip to content

Instantly share code, notes, and snippets.

View p-subudhi's full-sized avatar

prs12 p-subudhi

View GitHub Profile
1. Find frequency of characters in a string given
print the top 3 frequent occuring character and their occurance count
For Exemple:
input "aabbbccccddd"
output
c 4
b 3
d 3