Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order.
nums = [1,2,3][[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]nums = [0][[],[0]]Unlike combinations, we add curr to results at every recursive call — this captures all subsets including the empty set. The for loop starting at start prevents duplicates by only going forward. Each element is either included or excluded, giving 2^n total paths.