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.
This issue is fixed
Have you read this thread? Is this issue a duplicate, or not?
The only thing you should do it to memorize the whole table that contains Hamming Numbers so you don't recreate it every time.
This comment is hidden because it contains spoiler information about the solution
@MixMasterT
there are 1,999 tests ranging from 1 <= n <= 8053063680. Don't know why the author decided to test so many numbers but I guess they wanted a very fast solution.I am having a similar issue. My algorithm is very simple, yet I pass 748 test cases in 0ms according to the testing feedback, all green, no red. But it also times out. How many test cases are there?
I did but comparing my code with that of others it seems I used a very different solution method to most people. I took my cue from the merge algorithm outlined on the Wikipedia page about Hamming (aka regular) numbers.