- Arrays, Combinatorial, Hash

Count of possible unique arrays after swapping elements at same index of given Arrays

#include using namespace std;int possibleCombinations(int arr1[], int arr2[], int N){        unordered_map mp;                    for (int i = 0; i < N; i++) {        mp[arr1[i]] = arr2[i];    }            int count = 1;            vector visited(N + 1, 0);    for (int i = 1; i