Page 1 of 1

The total comparisons in finding both smallest and largest elements are

Posted: Wed Jul 13, 2022 7:42 pm
by answerhappygod
a) 2*n +2
b) n + ((n+1)/2) -2
c) n+logn
d) n2