next-valid-terminates

Status: IN

`_next_valid` in backspace-string-compare always terminates because the `index` variable strictly decreases on every iteration of its while loop, and the loop exits when `index < 0`.

Source: entries/2026/06/06/backspace-string-compare-solution.md

JSON