{"id":"precompute-then-transfer-partition-idiom","text":"`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.","truth_value":"IN","source":"entries/2026/06/06/maximum-score-after-splitting-a-string-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"precompute-then-transfer-partition-idiom","truth_value":"IN","reason":"premise"}]}}