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.
Agree swordfist
False is a correct answer in this case. North and west aren't opposite directions. In case [ 'n', 'w', 'n', 'w', 'n', 'w', 'n', 'w', 'n', 'w' ] you will not return to the start point.
I checked the tests, and that praticular test is definitey expecting your function to return false.
maybe you're not returning properly or reading the logs wrong.
There is no such test. All test cases that don't take you back to the start expect
false
.If you can't properly explain what's wrong there is nothing that can be done about it. Probably your code is just wrong.
Please, read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
Help us help you, we can't see your code and we can't guess what's wrong in your case.