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.
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 :/