#43
Multiply Strings
expert · 1005 · lc medium +32 · verified · 43.6% accepted · 7,713 likes · top 25%
Description
Two non-negative integers num1 and num2 are provided as strings. Compute and return their product as a string. BigInteger libraries and direct integer conversion are not permitted.
Example 1:
Input: num1 = "2", num2 = "3"
Output: "6"
Example 2:
Input: num1 = "123", num2 = "456"
Output: "56088"
Code
1
2
3