• + 2 comments

    Actually for implementing BigInt class in C++, i have used an integer array (vector of ints in fact), and to implement multiply operation, I have overloaded the addition operation of BigInt as well. I can multiply a very very large number with a relatively very small number, as in the case of calculating 25! = 25 * 24!; i can multiply ,for example, 24! with 25 but not with say 1000000, i get timeout in such cases.