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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yeah, probably should be 4 kyu.
You haven't solved a lot of kata's then I reckon
Try this test:
There is a bug in your code.
This particular case is stated in the description, at the end:
"Not all paths can be made simpler. ..."
The "reducibility" criterion for this kata is a "local" one: you are only allowed to cancel the opposing effects of move N and N+1, if they are opposite, rather than being able to cancel a larger series of moves (like the 4 moves N,S,E,W returning to start).
Or, in the more poetic language of the kata description, ^ this ^ is what the following sentence means:
"Going to one direction and coming back the opposite direction right away is a needless effort."
Not all tests pass, all tests passed until your code threw that error and halted the execution of further tests.
Read this: https://docs.codewars.com/training/troubleshooting