Subsets & Combinations - Matchsticks to Square
Consider two approaches to solve the Matchsticks to Square problem: (1) Backtracking with sorting and early pruning, and (2) Backtracking with bitmask and memoization. When is approach (2) clearly better than (1)?
