摘要:
字典树的简单应用。 #include#includechar str[10100][22];struct node{ int cnt; node *next[26];}*p;void build(char str[],int k,node *head){ while(knext[str[k]-'a']!=NULL) { head->next[str[k]-'a']->cnt+=1; head=head->next[str[k]-'a']; } else { ... 阅读全文
posted @ 2013-08-23 20:15
yongren1zu
阅读(203)
评论(0)
推荐(0)

浙公网安备 33010602011771号