InterviewSolution
Saved Bookmarks
| 1. |
In a binary min heap containing n elements, the largest element can be found in __________ time.(a) O(n)(b) O(nlogn)(c) O(logn)(d) O(1)The doubt is from Heap in portion Heap of Data Structures & Algorithms IThe question was asked in an online interview. |
|
Answer» Right answer is (a) O(n) |
|