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 don't understand why it is an issue. What do you want me to do? BTW you have a very good solution.
can easily be edited to use a counter then
What's UB
I will precise the description since the simplification process is not clear enough from the example. NORTH and SOUTH are opposite as are EAST and WEST. A path such as ["NORTH", "SOUTH", "EAST", "WEST"] can be reduced to []. But ["NORTH", "WEST", "SOUTH", "EAST"] cannot be simplified because "NORTH" + "WEST" is not a going and coming, same for "WEST" + "SOUTH" and "SOUTH" + "EAST".
Thanks for the feedback!