#include <iostream> #include <vector> #include <algorithm> #include <unordered_set> using namespace std; int auxFunc(vector<int> res, vector<int>nums,vector<int> maxLen,int end) { unordered_set<int>unmap; for (int i = end, j = res.size(); j &g...