Subsets / Bitmask pattern
For N items, an N-bit mask contains all choices at once. Reading its set bits builds the matching subset.
Difficulty: Medium · Approach: Read binary switches
This is a public lesson preview. Sign in with a Lifetime Pass to open the protected animation, solution, and code.