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