Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2847. Smallest Number With Given Digit Product
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).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.