Skip to content
RED SAG Skills
mediumStudy question · answer published in Data Structures and Algorithms interview questions, so no pointssorting-and-searching

Why quick sort uses a random pivot

An API sorts user lists with a quick sort that always picks the first element as the pivot. Requests with already sorted lists are very slow. What is the standard fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions