1.

What is meant by heap?(a) Used for fast retrieval of elements(b) Used for organising the elements(c) Used for fast retrieval & organising the elements(d) Used for deleting the elementsThis question was posed to me by my school teacher while I was bunking the class.My question is taken from Heaps topic in chapter Algorithms, Objects & Iterators in C++ of C++

Answer»

Right OPTION is (c) Used for fast RETRIEVAL & organising the elements

To EXPLAIN I WOULD SAY: A heap is a way to organize the elements of a range that allows for fast retrieval of the element.



Discussion

No Comment Found

Related InterviewSolutions