Perfect Square Collection
First time I saw this problem, I got lost. I did not think thoroughly on this problem, but use google to find the answer since this problem is so famous. (Is Euler the first one who gave the minimum solution?) Actually, analyzing the problem is not difficult at all.
My old code is actually from the discussion thread. But it was still not well written. I optimized the code a little bit. It runs 40ms or so.
No comments:
Post a Comment