sort-then-two-pointer-pattern

Status: IN

The sort + two-pointer squeeze pattern (used in `two-sum-less-than-k`) recurs across multiple solutions for pair-sum optimization, converting O(n^2) brute force into O(n log n)

Source: entries/2026/06/06/two-sum-less-than-k-solution.md

Depended on by

JSON