Problem 78 · Medium

Subsets

Generate every subset of a list of distinct numbers by deciding include or skip for each element. The visual draws a branching tree where each root-to-leaf path becomes one collected subset.

Open the interactive visualisation