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.
@Chrono79 Kata is completed. Thanks, dude!
okay cool! I didn't know you could do that on this site haha. Thanks!
I'm having the same issues here. This kata is great, but I wished there were more examples. I'm trying to figure out what inputs are being passed in the test cases, so I could modify my code to fix the problem.
Can anyone check my code? For some reason, I'm getting an error on my end.
nevermind, I found the isssue. I was using a different Node version.
Can anyone tell me why I'm getting an error in this code here. I seem to do everything that was correct and I'm getting an error for some reason.
Good solution. For some reason, I coudln't think of using the modulus operator for this challenge. I'll keep this in mind. I used way too many loops on this one.
metoo
Now I understand now. Thanks!
You need to create a function
solution(number)
wich returns the sum of every0 < n < number
such thatn
is multiple of 3 or 5.For example,
solution(10)
Multiples of 3 that are
< 10
: 3, 6, 9Multiples of 5 that are
< 10
: 5Result: 3+6+9+5 = 23
So
solution(10) returns 23
.You need to create a function
solution(number)
wich returns the sum of every0 < n < number
such thatn
is multiple of 3 or 5.For example,
solution(10)
Multiples of 3 that are
< 10
: 3, 6, 9Multiples of 5 that are
< 10
: 5Result: 3+6+9+5 = 23
So
solution(10) returns 23
.I don't really understand what this kata is trying to say.
That's just awesome. My solution is horrible, because I didn't even try to refactor or did anything with it. I really like this code here.
Yea, it's taking a while to understand what to fully expect from the output.
Thanks for the advice! HackerRank looks very interesting. I really appreciate you taking the time to recommend me those sections. I followed you on your G+ account. I'll contact you from there :)
Thanks!
Loading more items...