Hackerrank
Minimum Swaps 2 C++ Solution
#include <bits/stdc++.h> using namespace std; vector<string> split_string(string); vector<int>v[100003]; bool visit[100003]; // This function return the size of the cycle as mentioned in the explanation. int dfs(int i) { visit[i] = true; int z = 1; for(auto