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
(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
Get step-by-step solutions from verified subject matter experts
