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.
Here for decodeBits("1110000000111") it return
...
, should it be- -
?Thank you for your reply. I didn't understand the meaning of the question correctly before.
In the kata instructions, it says
But it generate random test contains 1 as prime factor(Small probability)
I would recommend modifying the test data generator.
I have found the problem which may lead to TLE or MLE, now I have solved it. Nice kata.
Ok, thanks a lot, I will try to optimize my code.
Other kata's time limit is usually be set to 12 seconds.
This kata did not reach 12 seconds, and didn't show any information about time limit, so I have this question.
Would it be better to add a timeout prompt to the test?
Is there a time limit for this problem?
I got following log, but not found any message of the reason why it failed
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution