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.
your solution is actually the same approach
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yes takes a lot more knowledge of other functions and methods not yet explored.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Might be an error in your code since everything is working with me. If you post your code I can see what's wrong - format your code here: https://help.github.com/articles/creating-and-highlighting-code-blocks/.
javascript passes all but 1 test with this error.
RangeError: Invalid array length
at solution
at test
at /runner/frameworks/javascript/cw-2.js:159:11
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at Object.describe
at Object.handleError
at ContextifyScript.Script.runInThisContext
at Object.exports.runInThisContext
It works now well mostly now thanks. There is a little glitch in this not sure if its me or the site but I pass all but one test and its failure is.
RangeError: Invalid array length
at solution
at test
at /runner/frameworks/javascript/cw-2.js:159:11
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at Object.describe
at Object.handleError
at ContextifyScript.Script.runInThisContext
at Object.exports.runInThisContext
1.) You're putting the array in the 'for' loop, which means it will replace the previous
sumArray
(replacement of the variable). Put it outside the 'for' loop.2.) You don't want to break if they are a multiple of 3 and 5. You should just push this number to the array instead.
This comment is hidden because it contains spoiler information about the solution
Hi guys, I'm having a timeout error for this question even though I passed the samples.
I am using a for-loop to evaluate the multiplies of 3 or 5. Is there a more efficient way of solving this question?
Thank you for sharing everyone :)
Double check your code before you 'mark' that there is an issue.
This comment is hidden because it contains spoiler information about the solution