You are given an integer array nums of unique elements.
Your task is to return all possible subsets (also known as the power set) of nums.
Remember that:
Return a list of lists, where each inner list represents a unique subset.
[0]
[ [], [0] ]
The subsets of a single-element set are the empty set and the set containing the element itself.
[0, 1]
[ [], [0], [1], [0, 1] ]
The subsets of the set [0, 1] are the empty set, the single-element sets, and the full set.
[0, 1, 2]
[ [], [0], [1], [2], [0, 1], [0, 2], [1, 2], [0, 1, 2] ]
These are all the possible subsets of the input array. The order of the subsets in the output does not matter.