// TOPIC
#combinatorics
2 articles
◆◆IntermediateMetaAmazon
01Subsets, Permutations & Combinations
Generate every subset, permutation, and combination with the choose/explore/un-choose backtracking template. Understand the 2^n and n! complexity ceilings, why sorting kills duplicate branches, and how to recognize which variant a problem is actually asking for.
#backtracking#recursion#combinatorics
12 min◆◆IntermediateGoogleMeta
02Backtracking
Learn the backtracking algorithm pattern — the systematic brute force that prunes itself. Master the universal choose-explore-unchoose template and apply it to subsets, permutations, combination sum, and N-queens.
#backtracking#recursion#combinatorics
10 min