Company Logo HackerRank Solution

 from collections import Counter

s = sorted(input())
c= Counter(s).most_common(3)
for i,j in (c):
print(i,j)

Comments

Popular posts from this blog

Mean, Var, and Std in numpy HackerRank

Min and Max in numpy HackerRank

Collections.deque() HackersRank Solution