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.
Random tests added. Method renamed as well. Also removed the superfluous 'stack' from the solution.
Imagine a spiral staircase, where walking [n, w, s, e] will result in going up (or down) the stairs. But walking [n, s, e, w] in that order will result in staying put.
Anyway, better to follow the problem spec than to complain about it.
probably if you're taking those directions, i guess if you wanna get technical you could think of walking up a slope so you may end up on the same geographical positiom but vertically you're higher than before xD