Question d’entretien chez Zalando

Do you know get function complexity of HashMap?

Réponse à la question d'entretien

Utilisateur anonyme

17 août 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