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.
Though you have solved it, but I would like to suggest you consider
console.log
as your best friend and watch out for edge cases by re-reading the description several times. Kudos ^^I got 101 passed test cases and only failed 3, I have confirmed that my logic is correct. It's impossible to know why those 3 test cases failed without providing the input walk array for the respective test cases.
Read this: https://docs.codewars.com/training/troubleshooting#print-input
I am having trouble figuring out how to solve this problem. I am checking to make sure that all movements are equal to ten and they cancel out, like south and north, but my code keeps on returning the wrong result and it doesn't show me which one is failing.
There are no numbers, only those letters.
Will the app give an array of directions with negative numbers to show that he needs to move back?
This comment is hidden because it contains spoiler information about the solution
10e + 1s case is irrelevent because length check
what happens if you have 10 of e and 1 s? They would cancle each other out... Better 2 variables.
You must be reading something wrong because the 3 tests under the too short label have less than 10 elements. Maybe you meant too long instead, if that's the case then the answer is yes.
about the test which says the walk is short - it has 12 letters, meaning the walk is > 10 and that is why it should return false. the walk is longer..
i just want to confirm what i understood is correct ..
thanks bro!
Here's a Clojure translation.
I'd really appreciate if you could review and approve it!
Grab a sheet of paper and a pen, draw that path, it goes north and then east 5 times each, see that you don't end where you started. Then rethink your code.
I still don't understand :(
Loading more items...