Vidyalelo
Data Structure · Q342

Sorting Algorithms

Programming · Data Structure · question 342

Q342

Apply Quick sort on a given sequence 7 11 14 6 9 4 3 12. What is the sequence after first phase, pivot is first element?

A.
6 4 3 7 11 9 14 12
B.
6 3 4 7 9 14 11 12
Answer
C.
7 6 14 11 9 4 3 12
D.
7 6 4 3 9 14 11 12

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board