public static void main(String args[]) {
        String[] input = {"What","must","be","shall","be."};
        GreedyTextJustification gtj = new GreedyTextJustification();
        List<String> result = gtj.fullJustify(input, 12);
        System.out.print(result);
    }
Date 03/12/2016
@author Tushar Roy

Given an array of words and a length L, format the text such that each line has exactly L characters and is fully
(left and right) justified.
You should pack your words in a greedy approach; that is, pack as many words as you can in each line.

Time complexity - O(n) where n is the number of words
Space complexity - O(1)

https://leetcode.com/problems/text-justification/
src/com/interview/array/GreedyTextJustification.java