摘要: //字典树//定义:注意任意字符需要130,01字典树只需要2struct Node{int last; int sum; int son[26];}trie[1000000];//插入:last参数标记在插入子串的末尾,sum记录插入时经过该节点次数void insert(char *s){ ... 阅读全文
posted @ 2015-11-04 09:24 forever97 阅读(176) 评论(0) 推荐(0) 编辑