摘要:
package util import ( "strings" ) type Node struct { //rune表示一个utf8字符 char rune Data interface{} parent *Node Depth int //childs 用来当前节点的所有孩子节点 childs map[rune]*Node term bool } type Trie struct { root 阅读全文
posted @ 2019-12-03 22:33
孙龙-程序员
阅读(1710)
评论(0)
推荐(0)