1.

Map is implemented using ____________________(a) binary search tree(b) red black tree(c) heap(d) hash tableThe question was asked during an interview for a job.My doubt stems from More Containers in section Class Hierarchies, Library & Containers of C++

Answer»

Correct answer is (B) RED black tree

Best explanation: The map has some order of stored keys THEREFORE red black tree is used to maintain that order and ACCESS the elements as SOON as possible.



Discussion

No Comment Found

Related InterviewSolutions