摘要:
Add and Search Word - Data structure design Design a data structure that supports the following two operations: void addWord(word) bool search(word) s 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Implement Trie (Prefix Tree) Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie 阅读全文