← ALL NOTES
Backtracking

77. Combinations

Choosing k numbers from [1, n] without regard to order is combinations, C(n, k) — and the way to generate them without producing the same set in different orders is to always pick upward: each…

Loading…