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 don't follow you there:
Going in one direction and immediatly going in the opposite one should be avoided.
@Chrono79, as you said
["NORTH", "WEST", "SOUTH", "EAST"]
is not reducible, am agreebut how's
["EAST", "WEST"]
not the same as the example above?? it's reducible too, isn't it?! why is[]
acceptable not["EAST", "WEST"]
as it is?[north, south, west, east] is [], but the first statement is of course, wrong.
No, they're not, and order matters in a path. Anyone that worked with a map would know that.
correct, they are same, order is not important. anyone worked with vectors would know that
This comment is hidden because it contains spoiler information about the solution
Amazing, but how does it work?
This comment is hidden because it contains spoiler information about the solution
but why doesn't codewars accept this solution?