Minimum Adjacent Swaps to Reach the Kth Smallest Number

mediumSolve on LeetCodeLast edited: August 2, 2025