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.
I think this questions is stupid how is this possible?
a=["NORTH", "WEST", "SOUTH", "EAST"]
test.assert_equals(dir_reduc(a), ["NORTH", "WEST", "SOUTH", "EAST"])
How do you get this result? If you are given these instructions, then taking these directions will lead you to the same spot you were before. I get the question but if the purpose is to avoid redundancy then what is more redundant than being end up in the same spot?
your solution is not linear and slow
This comment is hidden because it contains spoiler information about the solution
if it is easy, you can try to solve it linearly! That's what I did.