Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences.
Word Break II
Solution1
Recursive
1 | public ArrayList<String> wordBreak(String s, List<String> dict) { |