Do you know get function complexity of HashMap?
Anonymous
In the worst case, a HashMap has an O(n) lookup due to walking through all entries in the same hash bucket. Interviewer disagreed. We agreed to disagree.
Check out your Company Bowl for anonymous work chats.