There are 0 repository under sortal topic.
Given an array of n distinct elements, find the minimum number of swaps required to sort the array.