sort-by-parity-linear

Status: IN

The parity-sort algorithm runs in O(n) time with O(1) extra space via a single converging two-pointer pass.

Source: entries/2026/06/06/sort-array-by-parity-solution.md

JSON