Alt_of_Charon's blog

By Alt_of_Charon, history, 3 months ago, In English

This submission was wrong but still got AC

what if in the latter part we have a vector where a total of two pairs are in there incorrect position and one pair is set up in that vector such that it will pass the loop of checking whether after swapping we will get the same element which we store in the auxiliary sorted copy of the initial vector. That should fail the test cases right? But it didn't.

Read more »

  • Vote: I like it
  • +16
  • Vote: I do not like it