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.
Thanks bro!
O(n)
EDIT: or you just go the raw way... x)
O(n)
O(n)+O(n) = 2*O(n) => O(n)
Interesting. How would you calculate that?
nope:
O(n/3)+O(n/5)
so aroundO(n/2)
, so finallyO(n)
That is an o(n**2) solution correct?
Yeah I should've come up with some better name but you got the point.
No harsh feeling :)
This comment is hidden because it contains spoiler information about the solution
Lies.
sum5
isn't sum of multiples of 5 but sum of multiples of 5 minus multiples of 15.This comment is hidden because it contains spoiler information about the solution
This is so concise and clever!
This comment is hidden because it contains spoiler information about the solution
Clever solution!