Status: IN
`nearestValidPoint` fuses the validity filter and argmin reduction into a single O(n) pass with O(1) space — no intermediate filtered list, no sorting.
Source: entries/2026/06/06/find-nearest-point-that-has-the-same-x-or-y-coordinate-solution.md