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.
Oh sorry man, I got busy with work. Was going to do it today. Thanks for helping me with it - and then doing it.
I updated the Go translation myself.
This issue is fixed
Have you read this thread? Is this issue a duplicate, or not?
The author does not have to be active for a translation to get accepted.
This comment is hidden because it contains spoiler information about the solution
The only thing you should do it to memorize the whole table that contains Hamming Numbers so you don't recreate it every time.
@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.
Has anyone managed to solve this in Ruby? I have an O(n) solution which can calculate hamming(5000) in 200ms. I'm struggling to pass the volume of tests though withour it timing out after 6000ms