Ad
  • Custom User Avatar

    You have to create the algorithm to swap it. You sort it so that it has the proper order for you to be able to swap correctly. Re-read the scenario and take a look at the step-by-step examples underneath.

  • Custom User Avatar

    Probably you're printing the input of more than one test and confusing that with a single test input.