Status: IN
The circular-sentence algorithm assumes spaces never appear at position 0 or `len(sentence)-1`; indexing `sentence[i-1]` and `sentence[i+1]` around spaces would produce wrong results or IndexError if this invariant is violated.
Source: entries/2026/06/06/circular-sentence-solution.md
JSON