truncate-sentence-safe-overslice

Status: IN

`truncateSentence` safely handles `k` greater than the word count by returning the full sentence, relying on Python's slice semantics rather than explicit bounds checking.

Source: entries/2026/06/06/truncate-sentence-solution.md

JSON