思路:
1 DFS 但是TLE
2 DP 还需多练。。。
http://www.programcreek.com/2012/12/leetcode-solution-word-break/
http://xixiaogualu.blogspot.com/2013/10/leetcode-word-break.html
package Level5;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
/**
Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet", "code"].
Return true because "leetcode" can be segmented as "leet code".
*
*/
public class S147 {
public stati