Minimum Adjacent Swaps to Make a Valid Array

mediumSolve on LeetCodeLast edited: August 2, 2025