Ad
  • Custom User Avatar

    Most test cases require a single swap between ONLY two digits to find the answer e.g. 123456 --> 123465

    I would suggest adding at least one base test case for this requirement e.g. 152 --> 215 (as opposed to 251, which would be the answer for an algorithm with a single digit swap)