* this way i can be sure that the number is not in the ls, and when finish i swap back, * this way i can be sure that the original array is not modified, and i can explore all ...
//dfs(nums, used, list, count++); // {Mistake 2: if use ++ operation, count will increase even it is not going into the next level} dfs(nums, used, list, count + 1 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results