随笔分类 -  Trie

摘要:link class Solution { public: struct TrieNode{ TrieNode* children[26]; int id; TrieNode(){ id=-1; for(int i=0;i<26;i++) children[i]=nullptr; } }; Trie 阅读全文
posted @ 2020-08-06 11:14 feibilun 阅读(60) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h> # define LL long long using namespace std; const int INF=0x7fffffff; int n, m; struct Trie{ bool isword; int cnt; Trie* child 阅读全文
posted @ 2020-02-07 16:26 feibilun 阅读(144) 评论(0) 推荐(0)