Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
class Solution {
public:
string multiply(string num1, string num2) {
if (num1.size()
vecStr;
string ret = "";
int maxStrSize = 0;
int jw = 0;
if (len1 == 0 || len2 == 0)
return ret;
for (int i = 0; i
maxStrSize)
maxStrSize = tmpStr.size();
vecStr.push_back(tmpStr);
}
for (int i = 0; i