trie
trie copied to clipboard
support constructing trie without value
I think it would be great to have some beautiful way to construct a trie with only key but not value.
Like what STL does, we have std::set, which is a degeneration of std::map. It is quite useful to have something like std::set when we just want to check whether a specific element exists.