closest-value-tie-break-favors-smaller

Status: IN

When two node values are equidistant from the target, `closestValue` returns the numerically smaller value, enforced by a compound condition that prefers the smaller candidate on equal distance.

Source: entries/2026/06/06/closest-binary-search-tree-value-solution.md

JSON