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.
My hash impl returned 3,5. Hash impl is O(n) space and time. BS impl is O(nlogn) time, O(n) space. Justifying a sub-optimal answer as a "learning experience" without providing a progression of improvements seems poor form, and would not suffice in an interview or in the real world imo.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Tables: Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
My hash impl returned 3,5. Hash impl is O(n) space and time. BS impl is O(nlogn) time, O(n) space. Justifying a sub-optimal answer as a "learning experience" without providing a progression of improvements seems poor form, and would not suffice in an interview or in the real world imo.