[LeetCode] Smallest Number With Given Digit Product

1 · · Sept. 9, 2023, 7:09 a.m.
2847. Smallest Number With Given Digit Product Given a positive integer n, return a string representing the smallest positive integer such that the product of its digits is equal to n, or "-1" if no such number exists. ...