
Multiply Strings (medium)
Problem Statement
Given two non-negative numbers num1 and num2 represented as strings, return the multiplication of num1 and num2 , represented as a string.
Examples
-
Example 1:
- Input: num1:
4, num2:5 - Expected Output: "20"
- Justification: Multiplying 4 by 5 gives 20, showcasing simple multiplication.
- Input: num1:
-
Example 2:
- Input: num1:
11, num2:11 - Expected Output: "121"
- Justification: The multiplication of 11 by 11 equals 121.
- Input: num1:
-
Example 3:
- Input: num1:
999, num2:999 - Expected Output: "998001"
- Justification: The multiplication of 999 by 999 equals 998001.
- Input: num1:
Try it yourself
Try solving this question here:
Python3
Python3
. . . .
.....
.....
.....
Unlock this and all other premium problems.
No code editor for this lesson
This lesson focuses on concepts and theory