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 ton, or"-1"if no such number exists.
1 | class Solution { |
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 ton, or"-1"if no such number exists.
1 | class Solution { |