{"id":"string-doubling-trim-eliminates-trivial-matches","text":"In the repeated-substring-pattern solution, `(s + s)[1:-1]` is correctness-critical: without the `[1:-1]` trim, `s` always appears at positions 0 and `len(s)` in `s + s`, making every input a false positive.","truth_value":"IN","source":"entries/2026/06/06/repeated-substring-pattern-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"string-doubling-trim-eliminates-trivial-matches","truth_value":"IN","reason":"premise"}]}}