- Implement a trie with
insert
,search
andstartsWith
methods.
You may assume that all inputs are consist of lowercase letters a-z
.
An implementation using std::unique_ptr
.
insert
, search
and startsWith
methods.You may assume that all inputs are consist of lowercase letters a-z
.
An implementation using std::unique_ptr
.