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.
nah, then I would have hacked my way through to the answer from the testing method using reflection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
(Deleted. I made a mistake)
There're 24 Java solutions. Now ask yourself, did they somehow found a workaround, or their code can actually compute
N(5000)
before timing out?And don't forget there's Python which is A LOT slower than Java but the requirement is also
N(5000)
.This comment is hidden because it contains spoiler information about the solution
My alogrithm is also a trying process, just like yours, but perhaps doing more tries than yours.
I write it below this comment, and mark it as spoiler.
You can reply it and read it.
Please wait.. I'm writing..