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.
Yeah thats better
Updated the description again, let me know if it is clear enough.
Description should explicitly mention that multiple moves may be made. Also, don't number moves as 1 move, 2 moves, .. ,but as 1st move, 2nd move, ..
( And keep in mind that everything the examples do should already have been specified. Examples should clarify, not specify. )
I found it confusing, I only understand what to do based on the examples.
To me this sounds like you get only one move. If shown a board and asked "How far right can the cannon move?", I would assume they mean in the next turn. It is quite unintuitive to assume it is allowed any number of consecutive moves. I think something better would be like:
Or something to that effect.
Yes much better.
Updated the description, please let me know if I need to change something to make it more clear.
Any recommended way to make it more clear?
That could have been made more clear in the description. I read it as a simulation where the path to take is deterministic without the possibility to branch out and try several different paths.
the spec is correct. That's your interpretation of it that wasn't.
"as much as possible to the right" is the wanted result, not the way to solve it (aka, absolute max, not greedy max)
Let me guess, the spec is not correct. Instead of jumping as much to the right as we can, we should also branch out to the left if possible to see if we can move further to the right in that branch?
I don't understand the specs. I jump as much to the right as I can. I get stuck at index 8 and have no move moves to make in either direction. How does this kata work?
.
Updated and add more tests, let me know if there is still some bug.
It's almost 1 and half years ago, let me recall what I was thinking...
Hi,
the ref solution fails on cases like this:
COX
andCOXX
Loading more items...