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 is my solution too more or less, and I agree with others that the clever ones are admirable and fun. But I want to be able to read and follow the code easily now or at any time in the future. The plodding, workmanlike solutions are the way forward.
this is where I ended up. took a second but made the most sense to me. good work!
This is clear and readable. Not as clever as others, but easily understandable.
Yep, looked into this most of the day. My tips, your function is too long and tedious. You are using a certain method that is detrimental to the end result you are trying to achieve. Try something else.
This comment is hidden because it contains spoiler information about the solution
I am looking to this now..
I think there is a bug in tests. For array like [1,2,3,4,5,6] the "correct answer from tests" is 9, which in reality it's 3. Can anyone check this ? It is very simple task, I don't think I didn't see something
This comment is hidden because it contains spoiler information about the solution
for(var j = 1; j if(numArray[j] >= 0)
What's this line meant to be doing??
no reply
no reply
This comment is hidden because it contains spoiler information about the solution
Hi! Looking for a little clarification - is the goal to have the function run() return the string "Hello World"? Or is it to return the object containing the string - either { helloWorld: [Function: helloWorld] } or { message: 'Hello World' }?
Thank you!