greedy-sort-then-scan-pattern

Status: IN

Multiple solutions (array-partition, assign-cookies) share the same structural pattern: sort the input, then make a single linear pass to extract the answer — a recurring idiom for greedy problems in this repo.

Source: entries/2026/06/06/array-partition-solution.md, entries/2026/06/06/assign-cookies-solution.md

JSON