Question: Long multiplication algorithm with numbers that may be very large (may not fit in long long int). Should be done in C++. Sould also have

Long multiplication algorithm with numbers that may be very large (may not fit in long long int). Should be done in C++.

Sould also have an addition and subtraction function to be able to use in the long multiplication algorithm.

- Needs to read two digit strings a and b. Should be done using VECTORS. The numbers a and b can be very large, for example, they can be thousands of digits -Need an algorithm that will multiplty a and b by brute force time complexity of Long multiplication algorithm with numbers that may be very large (may not (n^2). Also known as "third grade multiplication" or "pencil and paper multiplication". and output the result.

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!