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.
Read the instructions. And it's been discussed before.
True true
Test.assertSimilar(dirReduc(["NORTH", "WEST", "SOUTH", "EAST"]), ["NORTH", "WEST", "SOUTH", "EAST"])
Test expects four directions to be returned, whereas in this case you just made a full turn and returned to your initial place, you might as well not moved at all // an empty array should be the correct answer in this case.
Also final order of directions inside the final array shouldn't matter
This comment is hidden because it contains spoiler information about the solution