Word Break
https://leetcode.com/problems/word-break class Solution { boolean[] isChecked; Map hash; String str; boolean isComplete = false; public boolean wordBreak(String s, List wordDict) { isChecked = new boolean[s.length()]; hash = new HashMap(); str = s; for(String word: wordDict) { hash.put(word, word); } rec(0); return isComplete; } void rec(int start) { if(isChecked[start]) return; StringBuffer sb ..