appteam-nith / HacktoberFest2k19

This repo is meant for HacktoberFest2k19 workshop
5 stars 92 forks source link

Minimum Swaps to Sort.c #211

Open himanshusharma89 opened 5 years ago

himanshusharma89 commented 5 years ago

Given an array of N distinct elementsA[ ]. The task is to find the minimum number of swaps required to sort the array. Your are required to complete the function which returns an integer denoting the minimum number of swaps, required to sort the array.