版本比较
字典树 Trie
正文
增加 3 行删除 3 行
27 行未改动2829303132323334353637 行未改动7475767778787980818223 行未改动10610710810911011011111227 行未改动
```cppstruct dot{ int Words; int Chr[30]; int Chr[30];}d[500005];```然后就是## 建树37 行未改动#include<bits/stdc++.h>using namespace std;struct dot{ int Words; int Chr[30]; int Chr[30];}d[500005];int n,cnt = 1;string s[500005];void build(int dot,string s){23 行未改动 for(int i=1;i<=n;i++){ printf("%d\n",find(1,s[i])); } return 0;} }```感谢复习