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.
It's been 11 months of cracking old code hahaha...thanks for coming back here
The negation there is to remove the multiples of 15 since they are accomulated twice,
once with the 3 accomulator and the other with the 5 accomulator.
Nice!
This is the best answer!
Defining variable
result
is redundant, beause it's defined implicitly.I removed those and there seems not to be any difference.
Yeah! good comments helps, even tho most of us here try to make solutions "one-liner" 😃 and seriously am tempted to follow that.
I honestly don't remember, I'll have a good look at it soon, see if i can crack my old code. This is why you should write good comments on everything you write!
Nice thought in there. Why's the negation there tho?
Let's not*. I merely mentioned what can be done, I did not claim it is good practice. Understanding why it works might however lead to useful insights, or give you ideas when playing code golf.
which instantly makes it harder to read, so lets dont do that.
This comment is hidden because it contains spoiler information about the solution
@sean_little the description states: 'If the list is made up of only negative numbers, return 0 instead.' The 'max' would end up being a 0 and thus 0 is returned.
I'd like to ask, what meaning has the bitwise negation here? Is this just an obscure way to do
Math.floor()
, or is it something more complex?The list can also be replaced with the generator expression directly
approved
Loading more items...