摘要: Add and Search Word - Data structure design Design a data structure that supports the following two operations: void addWord(word) bool search(word) s 阅读全文
posted @ 2020-07-16 16:26 十三w~w 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Course Schedule II 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 co 阅读全文
posted @ 2020-07-16 15:40 十三w~w 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Minimum Size Subarray Sum Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which th 阅读全文
posted @ 2020-07-16 15:24 十三w~w 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Implement Trie (Prefix Tree) Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie 阅读全文
posted @ 2020-07-16 14:53 十三w~w 阅读(92) 评论(0) 推荐(0) 编辑