1 |
void permute(vector<int>& nums, int start, int end, set<vector<int>>& setRes){ |
-
The details of this code
- the start is fixed in each recursion, it changes when calls permute function
- the elements following the start change in each recursion and exchange their positions with the start.
1 |
permute(nums, start + 1, end, setRes); |
近期评论