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.
It matters because the problem has nothing to do with coding, and the site is named "codewar". If I wanted math problems, I'd go to Project Euler.
What does it matter? Math is part of programming. If you don't like such kata's, skip them.
You didn't write a O(log n) solution.
Problems like these have nothing to do with coding skills. If you know the algo, you can do it, otherwise you'll keep staring at it for a week and still get nowhere.
And has nothing to do with coding skills.
Perhaps a better approach would be to give the user a framework to run all the tests locally, so that they can debug failed tests using something better than printing to stdout.
Is this comment supposed to make you look smarter than the rest of us?
What does this problem have to do with coding?
Some of the inputs contain moves even after a player has won. It doesn't make sense.