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.
Ahahah, cool !
leading zeroes are not out of specs
(C) Not gonna lie, I'm pretty miffed about the gross amount of leading zeroes that the input contains, despite leading zeroes not being allowed in the output.
A good try is to make the algorithm as simple as possible, with the least wrapping with object, the least function calls nd the simplest loop. In some languages it is enough to let you go below the 12 second, although not with a great margin.
One hint is in the description itself. As k and n grow the sum converges, suggesting that you may not need to care about terms that are too small. the test even gives away the tolerance error.
A last technique, somewhat advanced but very useful an generic, is memoization.
Too bad async functions don't work. I had to write my own scheduler