precompute-then-transfer-partition-idiom

Status: IN

`max_score_after_splitting` uses a precompute-then-transfer pattern: initialize the right-side count to the full-string total, then "transfer" elements to the left side as the partition sweeps right, achieving O(n) time instead of O(n^2) re-counting.

Source: entries/2026/06/06/maximum-score-after-splitting-a-string-solution.md

JSON