Question: 3) HugeInteger multiply(const HugeInteger& h): Returns a new HugeInteger representing the product of this HugeInteger and h. This method should not be implemented as repeated

3) HugeInteger multiply(const HugeInteger& h): Returns a new HugeInteger representing the product of this HugeInteger and h. This method should not be implemented as repeated addition (calculate m*n by adding m, n time) since its too slow. Also, the asymptotic time complexity of your implementation of the multiplication of two integers of at most n digits is o(n2) (i.e., subquadratic). Please take into consideration all the possible sign case for both the hugeintegers and write the code in c++.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!