1.

The total comparisons in finding both smallest and largest elements are

A. 2*n +2
B. n + ((n+1)/2) -2
C. n+logn
D. n<sup>2</sup>
Answer» C. n+logn


Discussion

No Comment Found