Pergunta de entrevista da empresa Zalando

Do you know get function complexity of HashMap?

Resposta da entrevista

Sigiloso

17 de ago. de 2017

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.

2