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. I will try different approachs.
My code passed 279 tests and timed out at 1 test (may be the n = 2**42 test). @G_kuldeep, can you help?
Below are the results of different values of n that my code returned within max 5.0s. If the results are correct, then I don't understand why am I getting the timeout error.
This comment is hidden because it contains spoiler information about the solution
Is 51015490 the right answer for n = 2**41
This comment is hidden because it contains spoiler information about the solution
Sorry. I am a beginner in the coding world. I had to figure out the markdown thing. Pls check the updated code block.
This comment is hidden because it contains spoiler information about the solution
Being a beginner, it took me a lot time to solve this Kata. But finally I was able to solve this Kata and without using any external library. BUt had to hard code for '1001'.