Now, starts the unsorted array of pairs in the worst case scenario. Previously, just one swap would have correctly sorted the pairs, meaning many faulty sorting implementations could "accidentally" get the right answer.
@RemArcAble08 This looks good, thanks! Since 2023/x is now considered stale, please branch off from 2024/x and make a PR for it instead. I will go ahead and merge the new one.
Now, starts the unsorted array of pairs in the worst case scenario. Previously, just one swap would have correctly sorted the pairs, meaning many faulty sorting implementations could "accidentally" get the right answer.