題43. 字串相乘

2020-08-13 10:39:32

C++

class Solution {
public:
    string multiply(string num1, string num2) {
        int l1=num1.size(),l2=num2.size();
        string res(l1+l2,'0');
        if(l1==0||l2==0)
            return "";
        f