Modify Quicksort to find the smallest K values in an array of records. Your output should be

Question:

Modify Quicksort to find the smallest K values in an array of records. Your output should be the array modified so that the K smallest values are sorted in the first K positions of the array. Your algorithm should do the minimum amount of work necessary.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: