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.
Shouldn't this maze return True? If you look at this path and count steps (blue dots), then they sum exactly equal to 10, as in requirement (print at the bottom). And health (3-1+2-3) is ok. Am i missing something?
This comment is hidden because it contains spoiler information about the solution
It's great that you provided proof! I love it!
I would just like to add one little thing: in the problem statement there was an example with a cube that was cut 0 times. And, although it is not indicated that such a case also needs to be processed, I just note that this formula will give the wrong result: 2 instead of 1.
I say this because I myself came to this formula trying to derive a pattern from the solved options) The pattern broke only on the 0th option)
Fixed. Thank you!)
Done. Thank you)
Hello!)
I'm glad that you found something interesting for yourself) In fact, I often use it in my work, that's why I got the idea to create this kata.
Regarding your suggestion... I agree that it would be nice to clarify this point. Because I got a pretty thin gap between "too fast" and "too slow".
This comment is hidden because it contains spoiler information about the solution
actualy,
[(1), 1], [1, (1)]
must returnTrue
, cause[(1), 1], [1, (1)]
same to[1, 1], [1, 1]
and its the same structure. But yeah, i get the point ([(1,), 1], [1, (1,)]
), just little detail...