class Solution { public: void permute_(vector<int>& num,vector<vector<int>>& res,int n) { if(n==num.size()-1) res.push_back(num); else { for(int i=n;i<num.size();++i) { swap(num[i],num[n]...