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
The instructions say that the array should only be modified when two neighbors are opposite directions.
For example, [NORTH, EAST, SOUTH, NORTH, WEST] should reduce like this:
0. [NORTH, EAST, SOUTH, NORTH, WEST]
Result: [NORTH]
The expected result you copied can't reduce, but if you did it where if any opposite direction is in the array, you would get the actual result provided. I had that problem too, so I think the instructions may just be a little unclear. Then again, I did skim them pretty quickly.
There is no error in the tests. Look at the top of the page: 566 guys passed the C++ kata. Sorry!