3 ms·Probably some sort of radix tree (which is a kind of trie) would be best.by bradleyjg 8y agoProbably some sort of radix tree (which is a kind of trie) would be best.