摘要: I user Trie to store the products. For every Trie node, it has the links to the next character and a PriorityQueue. The PriorityQueue is used to store 阅读全文
posted @ 2022-03-19 06:46 阳光明媚的菲越 阅读(13) 评论(0) 推荐(0) 编辑
摘要: This is a problem which check whether you know how to user Arrays.sort(). Time complexity: O(n*log(n)) Solution 1: Using comparator class Solution { p 阅读全文
posted @ 2022-03-19 03:39 阳光明媚的菲越 阅读(26) 评论(0) 推荐(0) 编辑