{"id":"modulo-for-circular-wraparound","text":"`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.","truth_value":"IN","source":"entries/2026/06/06/find-smallest-letter-greater-than-target-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"modulo-for-circular-wraparound","truth_value":"IN","reason":"premise"}]}}