adplus-dvertising
frame-decoration

Question

The worst case occur in quick sort when

a.

Pivot is the median of the array

b.

Pivot is the smallest element

c.

Pivot is the middle element

d.

None of the mentioned

Answer: (b).Pivot is the smallest element

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The worst case occur in quick sort when