Explanation:The input array has three elements.
The output lists all the 8 possible subsets:
the empty set,
single-element subsets,
two-element subsets,
and the subset containing all three elements.
Example 2:
Input:nums = [0]
Output:[[],[0]]
Explanation:The input array has one element.
The output lists the two possible subsets:
the empty set and the subset containing only the element 0.