摘要:
只能创建静态树,动态树超时#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= 阅读全文