5 kyu
Arbitrary word wrapping
357 of 358scrabbledude
Description:
You are writing an app that displays a fixed width font and has a strict limit of 25 characters per line in one particular text area.
Write a function that takes in a string, inserts newline characters, and adds a hyphen on the end of a line if a word is continued on the next line.
White space should be left in the result string as is.
Strings
Algorithms
Similar Kata:
Stats:
Created | Jul 18, 2013 |
Published | Jul 20, 2013 |
Warriors Trained | 946 |
Total Skips | 201 |
Total Code Submissions | 7058 |
Total Times Completed | 358 |
JavaScript Completions | 357 |
Total Stars | 13 |
% of votes with a positive feedback rating | 76% of 99 |
Total "Very Satisfied" Votes | 67 |
Total "Somewhat Satisfied" Votes | 16 |
Total "Not Satisfied" Votes | 16 |