摘要: 只能创建静态树,动态树超时#include <iostream>#include <string>using namespace std;struct treenode{bool color;treenode *next[10];treenode(){color=false;memset(next,NULL,sizeof(next));}};treenode tri[100001];int num;bool Insert(treenode *root,string str)//可行时反回true{bool flg1,flg2;treenode *p=root;flg1= 阅读全文
posted @ 2011-09-01 10:44 qijinbiao1 阅读(177) 评论(0) 推荐(0) 编辑