Split text file into messages
Filed under Netflix
The question
Write a function to split a text file into 140-character SMS messages, appending (i/n) to each, without splitting words, in a single pass.
No write-up yet. Related questions below have one.
Related Netflix questions
Collected from public candidate posts and coding forums. Updated Nov 2026.