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 love this kind of solutions, makes me happy :D
For me this is a genius solution!
done
Thank you. I read again the description with more caution, it's now I understood that is only about consecutive directions.
all the directions occur only once, and so it cant be reduced
['NORTH', 'SOUTH', 'WEST', 'NORTH'] can be reduced to ['WEST', 'NORTH'] since
north
andsouth
are cardinally opposite directionsCan someone explain the "Not all paths can be made simpler. The path ["NORTH", "WEST", "SOUTH", "EAST"] is not reducible. "? This isn't making any sense to me.
Funny solution but it works
the comparisson operators ==, >, <, => and =< already returns True or False
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution