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.
Me too :/
suppose you are at 0,0 index n will move up s will move down w to move left and e for move right , try this logic on paper you will understand
read the description again and then carry it out manually. pen and paper maybe?
why n, e, n, e, n, e, n, e, n, e - should return false (my code returns false its ok)
but n, s, n, s, n, s, n, s, n, s - should return true? (my code returns false - and test say that it's incorrect, but idk why)
1st test is from "should return false if walk does not bring you back to start"
2nd test is from "should return true for a valid walk"
ok, i give up, my code working but idk how to do this in one line :/