1. 程式人生 > >leetcode-43-Multiply Strings

leetcode-43-Multiply Strings

It is the same as we do multiplication by hand. We can use a array/vector to store it. Then manipulate as we perform in hand.

Error:

  1. Remember, the maximum length of the result is n_1 + n_2 + 1, not max(n_1, n_2) + 1