The total comparisons in finding both smallest and largest elements are
Posted: Wed Jul 13, 2022 7:42 pm
a) 2*n +2
b) n + ((n+1)/2) -2
c) n+logn
d) n2
b) n + ((n+1)/2) -2
c) n+logn
d) n2
Accurate answers. Every time.
https://answerhappy.com/