count-segments-uses-no-arg-split

Status: IN

`count_segments` relies on `str.split()` without a delimiter argument, which collapses all consecutive whitespace and strips leading/trailing whitespace — distinct from `s.split(' ')` which would give wrong counts

Source: entries/2026/06/06/number-of-segments-in-a-string-solution.md

JSON