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.
loool
It forced me to learn how classes and operator overloading worked in Python. So it was useful.
This comment is hidden because it contains spoiler information about the solution
Why'd you use Codewars if you want to just use "practical" things?
Obviously you should code some new projects and use Leetcode for "practical" things ;-)
No its not! It's a 6kyu for a reason.
Ask youself, what does it take for P1 to form a palindrome? And then understand that in all other scenarios, P2 must win. It's a piece of cake!
This comment is hidden because it contains spoiler information about the solution
Actually, that's one of the most perfomant versions. Have a look at Three Optimization Tips for C++. That being said, all tests can be bypassed easily anyway.
What's wrong with that?
My solution takes only one iteration...Maybe doesn't cover all power of two but enough to cover most of them