which of the below statements are true about a quick sort?
i. select pivot always should be the first element
ii. we can select pivot element by using any random order
iii. select pivot always should be the last element
either option i or option iii are correct
There is no rule that pivot element should be always first or last element, we can select pivot element by using any random function.
Back To Top