Ad
  • Default User Avatar

    with 1->10, 2->0 result will be 0325833691764184 => 325833691764184
    while with 1 ->0, 2->10 result will become 258336917-3-064184

    Important point is : it is not swapping of two number but only the number at position 1 is moved to position 2.
    In case of 209917 i,j are next to each other so moving digit at position 1 to 2 looks like a swap but it is not.