split-space-vs-split-default-semantics

Status: IN

`reverse_words_in_string` uses `split(" ")` (explicit space delimiter) instead of `split()`, which would collapse multiple spaces and strip leading/trailing whitespace — the explicit form preserves the input's spacing structure.

Source: entries/2026/06/06/reverse-words-in-a-string-iii-solution.md

JSON