+1 vote
in Data Structures & Algorithms II by (110k points)
Which of the following is not true about QuickSort?

(a) in-place algorithm

(b) pivot position can be changed

(c) adaptive sorting algorithm

(d) can be implemented as a stable sort

This question was addressed to me in an online interview.

The query is from Quicksort in chapter Sorting of Data Structures & Algorithms II

1 Answer

+1 vote
by (614k points)
selected by
Best answer
Right choice is (b) pivot position can be changed

Easiest explanation - Once a pivot is chosen, its position is finalized in the sorted array, it cannot be modified.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.