Available question text
Given an integer product, find the smallest positive integer whose decimal digits multiply to that product (or return -1 if no such number exists); the core challenge is factoring the product into digits 2–9 and combining them so the resulting number is minimal. Handle special cases like product = 0 (answer 10) and product = 1 (answer 1).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2847. Smallest Number With Given Digit Product
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source