leetcode 720. Longest Word in Dictionary
摘要:
使用前缀树 javascript function Node() { this.word = '' this.children = {} } class Trie { constructor() { this.root = new Node() } addWord(word) { var node 阅读全文
posted @ 2019-12-28 22:35 司徒正美 阅读(466) 评论(0) 推荐(0) 编辑