Construct the smallest number with a given digit count and digit sum.
Unlock detailed company stats for this questionUpgrade
Given a digitSum and a numberOfDigits, construct the smallest possible number that has exactly the given number of digits and whose digits sum to the given value.
Expect follow-ups like
- Reason about the brute-force solution and its complexity.
Community answers
No answers contributed by the community yet.


