Medium

Quiz

#43 Multiply Strings

APPROACH

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"
1 of 4
1:00

What is the optimal approach for this problem?