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.
I think this is the best solution I've seen yet
ranks cannot be changed for approved kata
#11bfx_433
nice solution .
would a set be faster here? I heard sets are pretty much always faster but i'm not sure here
should this really be 5 kyu? Maybe 6 kyu is a more suitable rank
This solution is slow, but the time complexity is still O(n).
This is because the length of the alphabet is a constant 26, so it would be O(26n) which is still O(n).
This comment is hidden because it contains spoiler information about the solution