1.

What is the type of the first item in the heap?(a) Bigger than others(b) Lower than others(c) Mean value of the heap(d) Equal to othersThis question was posed to me during an internship interview.The question is from Standard Library Algorithms topic in section Algorithms, Objects & Iterators in C++ of C++

Answer»

The correct option is (a) Bigger than OTHERS

Explanation: In C++, when we say HEAP we mean max heap and first element of max is bigger than others.



Discussion

No Comment Found

Related InterviewSolutions