862 views
If we use quicksort algorithm to sort the elements: $16, 13, 14, 12, 21, 16, 23$ and $15$ in ascending order, what is the output after the first pass of quicksort? (Assume pivot element is beginning of an array)
| 862 views
0
0
13,14,12,16,15---------------16(pivot)----------------------------21,23
0
16,13,14,12,15,16,23,21
0
(15,13,14,12,16) ->16<- (23,21)
Do you want a an illustrative answer?
–1
You might find this link interesting
https://visualgo.net/sorting
0
can u tell the algo.. ..when 1st element is pivot

15 13 14 12 16 -- 16 -- 23 21
by

+1 vote