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: void Plus(string& a,string& b,string& temp){ int small=min(a.length(),b.length()); bool flag=false; int i=0; for(;i '9'){ temp[i]-=10; flag=true; } else{ flag=false; } } while(i'9'){ temp[i]-=10; flag=true; } else{ flag=false; } i++; } while(i '9'){ temp[i]-=10; flag=true; } else{ flag=false; } i++; } if(flag){ temp[i]='1'; i++; } a.resize(i); for(int j=0;j