Multiply Two Numbers Given as Strings

Asked at Microsoft · Coding Questions · Difficulty: Medium · Last asked Feb 1, 2026

Given two non-negative integers represented as decimal strings `num1` and `num2`, return their product as a string. Do not convert the strings to a native integer type and do not use a big-integer library: the multiplication must be carried out digit by digit.

Loading the problem…