Minimum Factorization


  • 0

    Click here to see the full article post


  • 0
    I

    I think the last line: return a < 2 && res <= Integer.MAX_VALUE ? (int)res : 0;
    use a < 10 is more understandable then a < 2, since a < 10 means the remaining a has to contains only one digit to meet the algorithm


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.