Question: Consider the list {5 2 9 3 8 4 0 1 6 7}, and suppose you choose the first element as a pivot. Using the
Consider the list {5 2 9 3 8 4 0 1 6 7}, and suppose you choose the first element as a pivot. Using the partition algorithm in the book, what is the new list after the partition?
A. 4 2 1 3 0 5 8 9 6 7
B. 2 3 4 0 1 5 9 8 6 7
C. 4 2 3 0 1 5 6 7 9 8
D. 5 2 9 3 8 4 0 1 6 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
