Subsets is the foundational backtracking problem. The include/exclude decision tree pattern is the basis for combination sum, permutations, and many other problems.
Enable JavaScript for the full StreamPrep guide.