1.

Which type of heap is implemented in STL heap?(a) max heap(b) min heap(c) middle heap(d) close heapThis question was posed to me during an interview.My question is from STL in division Class Hierarchies, Library & Containers of C++

Answer» CORRECT ANSWER is (a) max heap

Easiest explanation - C++ STL-heap implements max heap i.e. the front of heap CONTAINS the maximum of all the elements in a RANGE.


Discussion

No Comment Found

Related InterviewSolutions