摘要:
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
阳光明媚的菲越
阅读(42)
评论(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
阳光明媚的菲越
阅读(37)
评论(0)
推荐(0)
浙公网安备 33010602011771号