合集-LeetCode Trie树

摘要:题目链接 208. 实现 Trie (前缀树) 思路 模板题 - Trie树 题解链接 官方题解 关键点 无 时间复杂度 \(O(\sum_{i}\#\text{word}_{i})\) 空间复杂度 \(O(\sum_{i}\#\text{word}_{i})\) 代码实现: class Trie: 阅读全文
posted @ 2024-09-12 23:45 WrRan 阅读(26) 评论(0) 推荐(0)