You are viewing a single comment's thread. Return to all comments →
HashMaps solves the problem in O(n) time. You can add the words to an array and sort the array, but that would be O(n log n)
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
HashMaps solves the problem in O(n) time. You can add the words to an array and sort the array, but that would be O(n log n)