How to Code a Solution To Deal With Large Numbers?
问题 I'm doing some Project Euler problems and most of the time, the computations involve large numbers beyond int, float, double etc. Firstly, I know that I should be looking for more efficient ways of calculation so as to avoid the large number problem. I've heard of the Bignum libraries. But, for academics interests, I'd like to know how to code my own solution to this problem. Can any expert please help me out? (My language is C) 回答1: You need to store the big numbers in a base that your