Vidyalelo
Data Structure · Q166

Heaps

Programming · Data Structure · question 166

Q166

The total comparisons in finding both smallest and largest elements are

A.
2*n +2
B.
n + ((n+1)/2) -2
Answer
C.
n+logn
D.
n2

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board