摘要:
My First PriorifyQueue Solution This soltion use a Map to record the frequency of every number, and then use PriorityQueue to sort by frequency. The t 阅读全文
摘要:
My First BFS Solution public boolean wordBreak(String s, List<String> wordDict) { if(wordDict.contains(s)) return true; Queue<String> queue = new Link 阅读全文