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.
OK, so it was really just a problem in my optimization...
OK, thanks. I will probably need to throw in more of the cleverness ingridient :D
Bravo! You win too!
You win, g964, that is so neat (and obvious, AFTER I'd stepped through a couple of cycles!).
Yeah, Voile, but who's to know that a better algorithm is out there, waiting to be found! :o)
n goes to 60000. My solution takes about 1500ms.
Guys is this more of a math problem or a programming problem? I have like 5 different working solutions, in sample tests I can compute
dbl_linear(25000)
in 7426ms. But I always get time out on submit. What are the constrains of n? Just so I know, whether my approach is just a bit off or completely wrong. This takes away my otherwise peaceful sleep :/ Thanks.Same here, I don't get the instructions. Sry