Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Agree with you, I'll fix it :)
Think that in each iteration of this for loop you are executing a count, which means that a.count(i) is iterating over the entier string a and adding up the amount of times it sees character i. This presents no issues when the words are quite small, but since the "time complexity of the count(value) method is O(n) for a list with n elements", when larger words are encoded for duplicates with this algorithm, it will take O(n²) because within each iteration of the for loop, you will iterate over the entire word again just to count the numner of times the character appears.