Israel Miles
Jul 22, 2021

Hi Yu Chen, that's a really good point. You're correct, being able to sort the hash map actually comes with the tradeoff that you're storing the pairs in a list, so the lookup time changes to O(N). I'll update the article with that note. =)

Israel Miles
Israel Miles

Written by Israel Miles

Software Engineer at Audible. Remote Work Proponent and writer of anything that gets a rant out of me.

No responses yet