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…
More Microsoft interview questions
- LLM conceptual questions
- Roofline Analysis and Mixed-Precision Gradients for Matmul
- Tiny Next-Token Prediction Model (PyTorch Fill-In)
- DNA Shotgun Sequencing: Chain and Eulerian Path Reconstruction
- Design Search Autocomplete / Typeahead
- Design a Chatbot Personalization / Memory System