Divisor Square Sum
I used two method to solve this problem. One is simple and straight forward. But the performance is poor, about 20 seconds. The second one is using recursion. It takes 2.4 seconds to get the answer.
I am surprised to see quite a few people using very slow brute force method in the discussion. It takes several hours or even days to get the answer. Why not think it over and let computer have a break?
No comments:
Post a Comment