Pergunta de entrevista da empresa The Home Depot

Following up on the last question, what is the time complexity to find a specific integer key-value pair in a Map?

Respostas da entrevista

Sigiloso

18 de mai. de 2021

I answered O(n), but I don't think this is right - I think it's O(1), but not 100% sure.

Sigiloso

15 de jul. de 2021

its constant time access not linear