摘要: 基础算法模板 tire树 #版本一: class Tire: def __init__(self): self.tire = [0, {}] def insert(self, word): p = self.tire for char in word: if char not in p[1]: p[ 阅读全文
posted @ 2021-10-03 23:02 owo_owo 阅读(33) 评论(0) 推荐(0) 编辑