assign-cookies-zero-extra-space

Status: IN

The two-pointer algorithm uses O(1) auxiliary space beyond the in-place sort — no heaps, hash maps, or copied arrays.

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

JSON