Sunday, February 17, 2013

project euler problem 013

large sum

I do not have my original code for this problem, but probably I used my bigInteger class. After reviewing this problem, I realized that it is not necessary to use such kind of tools, long long is sufficient. 
 "
Well, unless the test case is a corner case with flood of "9s.  This is something that projectEuler did poorly in early problems. Later on, the problem is always a sum of different cases which is harder to pass for buggy code.

No comments:

Post a Comment