Problem
You get two non-negative integers, num1 and num2, as strings of digits. Return the product of the two integers, also as a string.
Do not convert the full strings to integers. Do not use a library for large integers.
Example 1
- Input:
- num1 = "12", num2 = "34"
- Output:
- "408"
- Explanation:
12 * 34is 408.
Example 2
- Input:
- num1 = "999", num2 = "0"
- Output:
- "0"
- Explanation:
- Any number times 0 is 0. The result is
"0", not"000".
Example 3
- Input:
- num1 = "25", num2 = "25"
- Output:
- "625"
Constraints
- 1 <= num1.length, num2.length <= 200
- num1 and num2 contain only digits.
- num1 and num2 have no zeros at the start, except for the number 0.
SysRound wrote this statement. A reference solution checks every example.
Related questions
Continue with questions that share topics or the same question type.
- Add Binary
Coding · Bit Manipulation · Math · Simulation
- Basic Calculator II
Coding · Math · Stack · String
- Basic Calculator III
Coding · Math · Recursion · Stack
- Expression Add Operators
Coding · Backtracking · Math · String
Sources · 2 references
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 2 records
Meta
Leetcode 43. Multiply Strings
Reported Apr 30, 2025 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View sourceMicrosoft
Leetcode 43. Multiply Strings
Reported Sep 30, 2025 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source
LeetCode company tags · 2 records
Pinterest
Multiply Strings
Reported date not specified · Source window: 3mo
Source snapshot: Oct 20, 2026
Source frequency score: 68.3. This is not an interview probability.
View sourcePinterest
Multiply Strings
Reported date not specified · Source window: 6mo