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.
My favorite part of Codewars is spending hours getting to the solution, feeling triumphant, then comparing my solution to the most clever solution, and being totally humbled.
I am coding this in Python. The fifth standard test I fail. The right asnwer should be '101112'
This puzzles me because I don't understand how the one could repeat like that and then end on a two.
I thought that it's always going up by one then down by one then if needed up again, then if needed down again etc.
or staying the same, but not a mixture of all three directions.
Can anyone figure out what is the test case that is supposed to have an answer '101112'?
Thank you.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
My solution in Python passed all the tests. But it times out! Why would it time out, the code that passed all the tests is so simple! Thanks!
It returns 9223372036854774784
This comment is hidden because it contains spoiler information about the solution