Math
1317. Convert Integer to the Sum of Two No-Zero Integers
Return two positive integers a and b with a + b == n where neither contains the digit 0 (a solution is guaranteed to exist). Just try a from 1 upward, set b = n - a, and return the first pair where…
Loading…