⚡ Build the skills to land top-paying quant jobs. Offer ends in 26d 11h 34m 46s26 days 11 hours 34 minutes 46 seconds.
Given an array of distinct numbers, finding the minimum takes comparisons, and finding the maximum takes comparisons. If you have to find both the minimum and the maximum, what is the smallest number of comparisons that suffices in the worst case when ?