{"id":"immutable-string-list-copy-for-swap","text":"Python string immutability forces solutions that swap characters (e.g., `reverseVowels`) to convert to `list(s)`, perform O(1) swaps, then `\"\".join()` back — avoiding O(n^2) string concatenation.","truth_value":"IN","source":"entries/2026/06/06/reverse-vowels-of-a-string-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"immutable-string-list-copy-for-swap","truth_value":"IN","reason":"premise"}]}}