Description
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string.
Examples
Input:
num1 = "2", num2 = "3"Output:
"6"Explanation:
2 × 3 = 6.
Input:
num1 = "0", num2 = "123"Output:
"0"Explanation:
Any number multiplied by 0 equals 0, so 0 × 123 = 0.
Input:
num1 = "99", num2 = "99"Output:
"9801"Explanation:
Multiplying two 2-digit numbers: 99 × 99 = 9801. This demonstrates handling carry operations across multiple digits.
Constraints
- •
1 ≤ num1.length, num2.length ≤ 200 - •
num1 and num2 consist of digits only.