Given an array of words and a width maxWidth, format the text so each line has exactly maxWidth characters and is fully justified. Pack as many words as fit on each line, distribute extra spaces as evenly as possible (extra goes to the left slots), and left-justify the last line.
Practise this challenge
All coding challenges