Python字典树实现
摘要:class Trie: # word_end = -1 def __init__(self): """ Initialize your data structure here. """ self.root = {} self.word_end = -1 def insert(self, word):
阅读全文
posted @ 2019-04-09 14:48
posted @ 2019-04-09 14:48
posted @ 2019-04-02 11:18
posted @ 2019-04-01 17:21