1 votes 1 votes Consider an array with following element 12, 18, 17,11, 13, 15, 16 ,14 The number of element will change their initial position after completion of partition algorithm by choosing 15 as a pivot are __ Please solve step by step. Algorithms sorting algorithms quick-sort + – Yogesh Chaure asked Nov 18, 2016 • edited May 22, 2020 by soujanyareddy13 Yogesh Chaure 1.1k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes The answer should be 6. Final order of elements: 12,11,13,14,15,18,16,17 Initial order: 12, 18, 17,11, 13, 15, 16 ,14 vishwa ratna answered Nov 20, 2016 • edited Nov 20, 2016 by vishwa ratna vishwa ratna comment Share Follow See 1 comment See all 1 1 comment reply Himanshu Kumar Gupta commented Aug 17, 2020 reply Follow Share Got it... 0 votes 0 votes Please log in or register to add a comment.