Let a1, a2, . . . , an be a list of n distinct real numbers. How

Question:

Let a1, a2, . . . , an be a list of n distinct real numbers. How many comparisons are needed to form two sublists from this list, the first containing elements less than a1 and the second containing elements greater than a1?
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: