Break a string into lines of length k without breaking words

medium
Last edited: August 2, 2025