python-modulo-floor-semantics

Status: IN

The `net %= len(s)` normalization relies on Python's floor-modulo semantics where `(-2) % 5 == 3` — this would produce different results in C/Java, which use truncated division.

Source: entries/2026/06/06/perform-string-shifts-solution.md

JSON