How to implement common prefix search by using Apache Commons Trie?
Given a string, I want to return all strings in a trie that prefix the given string. So if a trie contains the strings "ae"
and "b"
, trie.searchCommonPrefix('aeb')
should return a list containing the string "ae"
.