217. Multiply Strings

MediumStringString

Given two non-negative integers represented as strings num1 and num2, return their product also as a string. Input: '"num1", "num2"'.

Input: '"num1", "num2"'.

Output: Quoted string — the product.

Examples

Example 1
Input: "2", "3"
Output: "6"
Explanation: 2*3=6.
Example 2
Input: "123", "456"
Output: "56088"
Explanation: 123*456=56088.
Example 3
Input: "0", "12345"
Output: "0"
Explanation: Zero product.

Constraints

Asked by

MetaMicrosoftBloombergGoogleAmazonOracle
Solve this problem in the editor →