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 thought similar. The coding is 6 kyu. But the reasoning required before implementation is higher than 6kyu.
Whiteboard and markers !
Thanks you for finding the sequence. I wondered what kind of math was underneath this kata.
This kata is like the classic meme which shows a coder looking at his screen with a furrowed brow, grumbling: I don't know why my code doesn't work. And then later, same expression: I don't know why my code works. Kata solved, miraculously.
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