{"id":"nearest-valid-point-returns-first-index-on-tie","text":"When multiple valid points share the minimum Manhattan distance, `nearestValidPoint` returns the smallest index because it uses strict `<` comparison (first occurrence is kept).","truth_value":"IN","source":"entries/2026/06/06/find-nearest-point-that-has-the-same-x-or-y-coordinate-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"nearest-valid-point-returns-first-index-on-tie","truth_value":"IN","reason":"premise"}]}}