We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Contacts
You are viewing a single comment's thread. Return to all comments →
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.