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.
Javascript, and thanks for the suggestion. I didn't know that logging shows up right next to each test case.
I have my code recursively reduce the array until it doesn't have any adjacent complements (North and South, etc.). It passes all the test cases except for these two:
Expected: '['EAST', 'NORTH']', instead got: '['EAST', 'NORTH', 'EAST', 'WEST']'
Expected: '['NORTH', 'EAST']', instead got: '['NORTH', 'EAST', 'NORTH', 'SOUTH']'
When I run ['EAST', 'NORTH', 'EAST', 'WEST'] on VSCode, it reduces it to ['EAST', 'NORTH'], and same thing for the latter case. I would like to know what the original test case for this was to learn what edge cases I need to iron out in my code.
Thanks.