1.

In what form does the STL provides heap?(a) queue(b) list(c) vector(d) priority_queueThis question was posed to me by my school teacher while I was bunking the class.Query is from Heaps topic in section Algorithms, Objects & Iterators in C++ of C++

Answer»

The CORRECT choice is (d) priority_queue

The best explanation: STL does provide a HEAP in the FORM of a std::priority_queue.



Discussion

No Comment Found

Related InterviewSolutions