Quiz on C++ Algorithm is_heap Function



1. What does the function is_heap() check for a range in C++?
2. Which header file is required to use the is_heap() function?
3. What is the time complexity of the is_heap() function?
4. What will is_heap(begin, end) return if the range is a valid heap?
5. What type of container can be checked using is_heap()?

Advertisements