Maximum Score After Binary Swaps
Ones can only move left in order, so a table of best scores over each reachable target position finds the maximum.
Ones can only move left in order, so a table of best scores over each reachable target position finds the maximum.