Given an integer array nums, return the minimum number of swap operations required to move all
In a single swap operation, you can choose any two indices and swap their values.
Constraints:
nums.length
nums[i]
Given an integer array nums, return the minimum number of swap operations required to move all
In a single swap operation, you can choose any two indices and swap their values.
Constraints:
nums.length
nums[i]