Talentd/FleetCode/Problems/

625. Minimum Factorization

Medium
Read SolutionWatch Video

625. Minimum Factorization

Medium34.2% AcceptancePremium
PremiumFree on FleetCode

Given a positive integer num, return the smallest positive integer x whose multiplication of each digit equals num. If there is no answer or the answer is not fit in 32-bit signed integer, return 0.

Example 1:

Input: num = 48
Output: 68

Example 2:

Input: num = 15
Output: 35

Constraints:

  • 1 <= num <= 231 - 1
Asked by 1 company

Loading editor...

48