Ad
  • Custom User Avatar

    I have trouble with one random test :

    89953 922317
    which is supposed to output 4
    I don't see how it can be, I find 5 when I run it by hand. It would be 4 if the carry was not counted in one of the operation which would be incorrect.

    log of the operations :

    3 7 +1
    carryValue 1
    carries 1

    5 1
    carryValue 0
    carries 1

    9 3 +1
    carryValue 1
    carries 2

    9 2 +1
    carryValue 1
    carries 3

    8 2 +1
    carryValue 1
    carries 4

    0 9 +1
    carryValue 1
    carries 5

  • Custom User Avatar

    when doing the atempt, numbers are having different lentgh in the one pair

    wrong description