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.
Instead of checking for upper cases, we can just compare it to the string length since whatever is not uppercase will be in lowercase.
hmm ok, I won't publish this kata then.
Yes, imports are allowed, but there is no need to import math at all here, remember that square root is just the power of 0.5.
Alright, changing it after I figure out a better way for the swap method
This comment is hidden because it contains spoiler information about the solution
Thanks for the feedback! I'll fix and republish it shortly.
Solution in python has unneccesary whitespaces...
Creative use of zip()! Gonna take note...
I'm curious about the time complexity of this solution by the way, is it O(n^1.5)?
Thanks for the feedback! I have fixed the issues you have raised except the desciption part.
Will change the description once I come out with a better rewording.