Minimum Swaps 2

  • + 30 comments

    "You are given an unordered array consisting of consecutive integers [1, 2, 3, ..., n] without any duplicates."

    1 3 5 2 4 6 8

    huh?