字典树 统计难题
摘要:
#include <stdio.h>#include <string.h>#include <stdlib.h>#define MAX 26struct Trie { Trie *next[MAX]; int v;};Trie *root;void creattrie(char *str){ Trie *p, *q; int t, len, i, j; p = root; len = strlen(str); for (i = 0; i < len; i++) { t = str[i] - 'a'; if(p->next[t] = 阅读全文
posted @ 2011-07-20 11:33 more think, more gains 阅读(158) 评论(0) 推荐(0)
浙公网安备 33010602011771号