摘要: 题目: Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string containi 阅读全文
posted @ 2017-07-15 11:43 panini 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement a trie with insert, search, and startsWith methods. 链接: http://leetcode.com/problems/implement-trie-prefix-tree/ 7/14/201760%,照着课件代码改写的。 阅读全文
posted @ 2017-07-15 08:00 panini 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you ha 阅读全文
posted @ 2017-07-15 00:50 panini 阅读(175) 评论(0) 推荐(0) 编辑