Given an integer array nums of unique elements, return all possible subsets (the power set).
Given an integer array `nums` of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets.
Invariant: At depth i, subset contains a valid prefix decision from nums[0 ... i-1].
Backtracking explores state trees and reverts modifications upon returning from recursion.
Bottleneck: Power set has exactly 2^N states.
Given an integer array nums of unique elements, return all possible subsets (the power set).
Given an integer array `nums` of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets.
Invariant: At depth i, subset contains a valid prefix decision from nums[0 ... i-1].
Backtracking explores state trees and reverts modifications upon returning from recursion.
Bottleneck: Power set has exactly 2^N states.
Initialized pointers: Left at index 0 (1), Right at index 2 (3). Looking for target sum = 5.