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 it needs algorithim binary tree or somesthing like that using recursion
but found that it need a better look numbers reltion to each other starting from n
Maybe I'm missing a nuance in what is expected, but the C++ test_tree_with_23_nodes test (and later) seem broken. Ex for test_tree_with_23_nodes test:
Expected: [ 12, 13, 16, 1, 40, 29, 2, 19, 6, 35, 3, 38, 6, 22, 29, 8, 10, 10, 8, 21, 1, 36, 33 ]
Actual: [ 22, 8, 35, 3, 13, 29, 38, 1, 6, 10, 19, 29, 33, 36, 40, 1, 2, 6, 8, 10, 12, 16, 21 ]
As you can see, the expected starts out incorrectly sorted after the first level
Thanks to you I discovered the feature Next
I guess the answer is yes, since I was able to solve it on this basis.
Funny kata to figure out.
Question about "a string representing a grid like in the above pictures".
Does this mean there will always be either 0 or 2 '-' between every pair of '+'?
they were?
Funny kata to learn some new concepts with.
You can skip door 8 and go directly to door 9. You end up paying 7 + 9 + 10 = 26.
I don't understand the underlying maths: e.g. if we start at 7, and the jewels are behind doors number 10, we haveto pay 7 + 8 + 9 + 10 = 34, however the description says it is 26. Where is 26 coming from?
yeah, he is experient!
Interesting kata, thanks.
Enjoyable programming kata indeed.
del
Maybe this paragraph will help? https://docs.codewars.com/training/troubleshooting#timeout
Loading more items...