摘要: 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 阅读全文
posted @ 2021-12-15 08:26 阳光明媚的菲越 阅读(23) 评论(0) 推荐(0) 编辑
摘要: My First BFS Solution public boolean wordBreak(String s, List<String> wordDict) { if(wordDict.contains(s)) return true; Queue<String> queue = new Link 阅读全文
posted @ 2021-12-15 07:16 阳光明媚的菲越 阅读(21) 评论(0) 推荐(0) 编辑