题目: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) {
int m=num1.size();
int n=num2.size();
string zero="0";
int tot=m+n-1;
int res[m+n]={0};
int temp[tot+1]={0};
if(num1==zero||num2==zero)return 0;