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.
There are ~450 tests.
My code passed 279 tests and timed out at 1 test (may be the n = 2**42 test). @G_kuldeep, can you help?
Thanks:D
tough yet simple if you see your solution after solving it.
There are very many tests. 5 sec is too long to generate just those values.
Very nice, but tough.
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.
spoiler flag... x/
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
Please update your full solution; i don;t know what to return from your solution.
Sorry. I am a beginner in the coding world. I had to figure out the markdown thing. Pls check the updated code block.
How am i supposed to know where your for loop end and where your ifs end?
Loading more items...