InterviewSolution
Saved Bookmarks
| 1. |
Which function is used to insert an element into heap?(a) push_back()(b) push_heap()(c) pop_back()(d) pop_heap() |
|
Answer» Correct choice is (b) push_heap() The best explanation: C++ STL-heap container provides push_heap() function that inserts a new element to the constructed heap. |
|