Ad
  • Default User Avatar

    Python tests are still wrong.
    Testing for '19865 79361\n402152 612510\n607 673\n71952219 91743807\n84965805 55832322\n6715 8029'

    Error:
    It should work for random inputs too: '3 carry operations\n1 carry operations\n2 carry operations\n4 carry operations\n4 carry operations\n2 carry operations' should equal '2 carry operations\n1 carry operations\n2 carry operations\n4 carry operations\n4 carry operations\n2 carry operations'
    3,1,2,4,4,2 should equal 2,1,2,4,4,2

    _111
    _19865
    +79361


    99226

    clearly 3 carry operations, yet the test case says 2.

    It appears that the source is broken when it encounters a 9+9 preceded by or followed by another carry... I was able to generate a hack to my working algorithm to reproduce the incorrect algorithm used to create the test cases. :(

  • Custom User Avatar

    Why are there 200 test cases when there are only 8 possible cases?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution