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.
This comment is hidden because it contains spoiler information about the solution
Can't believe I missed that, silly me. Thank you
Think about what I wrote before. Your function returns true when it should return false.
This comment is hidden because it contains spoiler information about the solution
Were you able to fix this? I'm having the same problem and I also wrote it in JS
What if walk.length is 4? I think length should be an exact value (and only one) to be valid.
You could post your whole code.
It would be easier to help you that way.
This comment is hidden because it contains spoiler information about the solution
Value is not what was expected
means you returnedtrue
instead offalse
there.Are you checking path length?
I think the "returning to the original point given a certain amount of time" gives that away, you shouldn't feel flustrated because it took you more time than you wanted to figure out how to represent that, we are here to learn and abstraction is part of the learning process.
The exercise by itself is very reasonable, I hope I can eventually pass the "expected value" test so I can check it as finished.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution