01 · Question
Given an integer array nums of unique elements, return all possible subsets (the power set).
02 · Analysis
At index i, branch into taking or skipping nums[i]. Every subset corresponds to one sequence of binary choices, so each appears once. Save a copy at i==n and undo each append. Distinct inputs have 2^n subsets; materializing them takes O(n*2^n) time and output space, plus O(n) auxiliary stack/path space.