MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / node

Class node

code/strings/trie.cpp:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1template <class T>
2struct trie {
3 struct node {
4 map<T, node*> children;
5 int prefixes, words;
6 node() { prefixes = words = 0; } };
7 node* root;
8 trie() : root(new node()) { }
9 template <class I>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected