in Algorithms
2,236 views
2 votes
2 votes
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)
in Algorithms
by
2.2k views

4 Comments

(15,13,14,12,16) ->16<- (23,21)
Do you want a an illustrative answer?
1
1
You might find this link interesting
https://visualgo.net/sorting
0
0
can u tell the algo.. ..when 1st element is pivot
0
0

1 Answer

3 votes
3 votes
15 13 14 12 16 -- 16 -- 23 21

Related questions