• + 1 comment

    First of all hashmaps (they do not maintain any order) and arrays are not the same thing. And the question that was asked here was related to trie since it's better to use trie rather than using hashmap (if memory constraint is a problem) with frequency of character to predicate which words are commonly used and bubble them up.