0
any smaller alternative for this??
tips and tricks to achieve this but with lesser code https://code.sololearn.com/ci90j4YhcP1B/?ref=app
3 Answers
+ 3
https://code.sololearn.com/cGp4RPQtOXxM/?ref=app
+ 3
xSOGIx
first check if character exist in dictionary. if exist then increment count otherwise put count 1
https://code.sololearn.com/cebXGf11Gq58/?ref=app