This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingAssign workers to jobs one-to-one at the lowest total cost.
What this asks
Assign workers to jobs one-to-one at the lowest total cost.
dp[mask] over assigned jobs; bitCount(mask) picks which worker moves next.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing