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
is it be more better if we use {for}?
yes, i have same opinion, using api to simplify the code but it have poor performance
Kind of embarassing that a O(n^2) is this high up :/
Nice job!
If in a more general case (not restricted to 26 english character and 10 digits), this method's time complexity could be O(n^2), which I think is not good enough...
this solution doesnt work at all, replace ask for char to char rather than string to string.