modulo-for-circular-wraparound

Status: IN

`idx % len(array)` is the standard idiom for circular wrap-around in sorted/search problems — it handles target-greater-than-all, target-equals-last, and target-equals-interior cases without explicit conditionals.

Source: entries/2026/06/06/find-smallest-letter-greater-than-target-solution.md

JSON