Maximum Total Reward Using Operations II
Collect rewards in increasing order; each reward extends the totals that were reachable below it, a 0/1 knapsack over sums.
Collect rewards in increasing order; each reward extends the totals that were reachable below it, a 0/1 knapsack over sums.