Skip to content

Instantly share code, notes, and snippets.

Avatar

prs12 p-subudhi

View GitHub Profile
View a.txt
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