摘要: 题目: You are given a data structure of employee information, which includes the employee's unique id, his importance value and his direct subordinates' 阅读全文
posted @ 2020-02-21 22:33 silentteller 阅读(361) 评论(1) 推荐(0) 编辑
摘要: 题目: In this problem, a tree is an undirected graph that is connected and has no cycles. The given input is a graph that started as a tree with N nodes 阅读全文
posted @ 2020-02-21 21:45 silentteller 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie.search("apple"); // retu 阅读全文
posted @ 2020-02-21 20:16 silentteller 阅读(249) 评论(0) 推荐(0) 编辑