tag:blogger.com,1999:blog-6314876008291942531.post6967472346735903962..comments2024-01-14T00:36:43.430-08:00Comments on Antonio Gulli's coding playground: Hamming numbersUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6314876008291942531.post-21977256436566737072009-02-15T09:08:00.000-08:002009-02-15T09:08:00.000-08:00A first naive solution is to start with the set H_...A first naive solution is to start with the set H_0 = {1, 2, 3, 5 } then build H_i = 3 * h_{i-1}, h_{i-1} \in H_{i-1}, i>0. Obviously, we generate multiple duplicates that we can t"eliminate" with a post-processing sort operation. <BR/><BR/>What is wrong with that?codingplaygroundhttps://www.blogger.com/profile/08478993186814330588noreply@blogger.com