Why "12122436" is additive?


  • 0
    S

    the last digit is 6; and the only two digits whose sum is 6 are 2 and 4
    ==> then I have to cut the trailing 122436
    ==> then only "12" is left in string, and there is no way to construct addition among two digits


  • 2
    S

    [12, 12, 24, 36]

    12+12=24

    12+24=36


Log in to reply
 

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