Leetcode-Question-208: Implement Trie (Prefix Tree)

原文链接:
https://leetcode.com/problems/implement-trie-prefix-tree/

题目描述:
208. Implement Trie (Prefix Tree)
Difficulty: Medium

Implement a trie with insert, search, and startsWith methods.

Note:
You may assume that all inputs are consist of lowercase letters a-z.

解答:

Updated 2017.10.08

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注