Split Message Into Limited-Length Chunks With Indexed Suffix

Asked at Faire · Coding Questions · Difficulty: Medium

You are given a `message` string containing ordinary characters and spaces (words are separated by spaces), and an integer `limit` representing the maximum number of characters allowed per line.

Loading the problem…