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.
I can't remove v8 for some reason, but I'm not intending to support it so I've notated that v10+ should be used
Resolved
Only one test.
note: this is an issue with using Node v8
TypeError: Cannot read property 'members' of undefined
at /home/codewarrior/index.js:17:79
at begin
at it
at /home/codewarrior/index.js:16:3
at /runner/frameworks/javascript/cw-2.js:152:11
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at describe
at /home/codewarrior/index.js:15:1
at /home/codewarrior/index.js:20:5
at Object.handleError
This needs more upvotes. Awesome solution!
LOL
Okay I took it too literally I think. Seems obvious now haha thank you.
'Seems you found your problem. Closing.
Seems you misunderstood somehting because the while loops do execute themselves. Hint: this code is calculating the sum of fatorial(n) for n = 1 to 5 and so should output 153 (as you already know).
This comment is hidden because it contains spoiler information about the solution
haha, just for fun. I haven't practiced lookup table a long time. If i's range was limited, lookup table is the one of fast solutions, like lookup the ticket price between 2 train stations.
O_o whut
Thank you for the reply, you were exactly right!
Your code surely will find the correct
number
sometimes, but your code can not return the expected number.When execute the if statement, meet
==0
, then recursive +1, but please note:AvoidObstacles(.....)
has noreturn
keyword with it, it just execute, no result. I'm think so ;-)EDIT: you code does not check the last element of array(
i=1;i<...length...[i-1]
).Loading more items...