Pergunta de entrevista da empresa CME Group

What is treaMap? What is it's internal architecture?

Resposta da entrevista

Sigiloso

26 de jul. de 2020

TreeMap internally uses Red-Black tree as internal DS. Tree is having Time complexity of O(log n). So, It also should have the same time complexity. TreeMap does not allow null key but null values are allowed.