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
I understand what you said, I started the same way: going ["NORTH", "SOUTH", "EAST", "WEST"] or ['NORTH', 'WEST', 'SOUTH', 'EAST'] you will end up in the same place, and it will make no sense to move, but what this kata asks for is the instructions to complete a path, not a displacement.
Sorry, there are nothing broken. Description is about
["NORTH", "SOUTH", "EAST", "WEST"]
and your test is for['NORTH', 'WEST', 'SOUTH', 'EAST']
as far as I can understand your post.It seems like the tests are broken/not match the description. The description states:
In ["NORTH", "SOUTH", "EAST", "WEST"], the direction "NORTH" + "SOUTH" is going north and coming back right away. What a waste of time! Better to do nothing. The path becomes ["EAST", "WEST"], now "EAST" and "WEST" annihilate each other, therefore, the final result is [] (nil in Clojure).
But the test for my solution fails with:
[] should equal ['NORTH', 'WEST', 'SOUTH', 'EAST']