diff --git a/C/Minimum Swaps to Sort.c b/C/Minimum Swaps to Sort.c new file mode 100644 index 0000000..6549b1b --- /dev/null +++ b/C/Minimum Swaps to Sort.c @@ -0,0 +1,40 @@ +#include +using namespace std; +int min Swaps (int New, int N); +//Driver program to test the above function +int main() +{ +int t; +cin>>t; +while(t--) +{ +int n +cin>>n; +int a[n]; +for(int i=0;i>a[i]; +cout<