{"id":"greedy-sort-then-scan-pattern","text":"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.","truth_value":"IN","source":"entries/2026/06/06/array-partition-solution.md, entries/2026/06/06/assign-cookies-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"greedy-sort-then-scan-pattern","truth_value":"IN","reason":"premise"}]}}