How many comparisons are necessary to find the largest and smallest of a set of n distinct elements? How many comparisons are necessary to find the largest and smallest of a set of n distinct elements? Do not assume the answer must involve sorting. It could but does not need to do so. Try to be as efficient as you can.