two-pointer-compaction-family

Status: IN

Problems 26 (remove duplicates), 27 (remove element), and 283 (move zeroes) all use the same read/write pointer compaction pattern with different keep-predicates; the structural code is identical, only the filter condition varies.

Source: entries/2026/06/06/remove-element-solution.md

Depended on by

JSON