{"id":"python-negative-mod-safe-for-circular","text":"Python's `%` operator guarantees non-negative results for positive divisors, so `(i - j) % n` correctly handles backward circular wrapping without an explicit bounds check — used in defuse-the-bomb and applicable to all circular-array solutions.","truth_value":"IN","source":"entries/2026/06/06/defuse-the-bomb-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"python-negative-mod-safe-for-circular","truth_value":"IN","reason":"premise"}]}}