Advanced DP Checkpoint

Bitmask, tree, interval DP, and knapsack patterns.


1. For 0/1 knapsack in 1D DP, you iterate capacity:
2. Bitmask DP over n items has how many states?
3. Tree DP often uses take/skip states to handle adjacency.
4. Interval DP typically chooses:
5. Counting LIS uses: