Make Lexicographically Smallest Array by Swapping Elements

mediumSolve on LeetCodeLast edited: August 2, 2025