2 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) Algorithms algorithms quick-sort sorting + – dd 2.8k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply dd commented Jan 20, 2017 reply Follow flag please close if duplicate 0 0 replyShare srestha commented Jan 20, 2017 reply Follow flag 13,14,12,16,15---------------16(pivot)----------------------------21,23 0 0 replyShare Supremo commented Jan 20, 2017 reply Follow flag 16,13,14,12,15,16,23,21 0 0 replyShare prateekdwv commented Jan 20, 2017 reply Follow flag (15,13,14,12,16) ->16<- (23,21) Do you want a an illustrative answer? 1 1 replyShare prateekdwv commented Jan 20, 2017 reply Follow flag You might find this link interesting https://visualgo.net/sorting 0 0 replyShare cse23 commented Jan 25, 2017 reply Follow flag can u tell the algo.. ..when 1st element is pivot 0 0 replyShare Please log in or register to add a comment.
3 3 votes 15 13 14 12 16 -- 16 -- 23 21 arun.sm answered Jun 22, 2018 arun.sm comment Share Follow 0 reply Please log in or register to add a comment.