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.
They are 3 numbers 10, 11 and 12. Not a kata issue. Print the input to know their values.
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
what you suggest adding/editing?
Your code has an infinite loop, that's why it times out.
simple ≠ efficient code
you need to figure out a way to make your code run faster as it seems to fail only in the big cases when you attempt
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
Your approach is correct, but implementation has a bug. What would be an expected answer for
est_subsets(list(range(63)))
? What does your solution return?This comment is hidden because it contains spoiler information about the solution