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.
Bro it is stated it should be in a type of sequence you can understand the condition by the below example.
for example [North,East ,West, South] then since east west are in sequence they are eliminated first ->
The Array is reduced as [North South] Again North South are in sequence so the will be eliminated so
Final result is An empty array
It is not stated that they need to be in sequence or out of sequence, in some cases the result considers directions that aren't in sequence but somehow dont reduce this occurance
Man you for real? You have NxM iterations of linear operation "in"
That is if the task is to reduce the steps to the most optimal.
The actual task is:
From,
NWSE
. There's noWE
,EW
,SN
, orNS
. Which means, you don't need to reduce it.