Input: ["What","must","be","shall","be."], 12 MyOutput: ["What must be","shall be."] Expected: ["What must be","shall be. "]
(I think my output is expected according to the spec)
For the last line of text, it should be left justified and no extra
space is inserted between words.
@lolhaha It means there should be a space between words, but there should be no extra spaces between words. All extra spaces should be left behind.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.