Which of the following sorting algorithms is NOT stable?
- A Merge sort
- B Bubble sort
- C Quick sort
- D Insertion sort
Explanation
Quick sort is not stable because partitioning can swap equal elements out of their original relative order; merge sort, bubble sort and insertion sort are stable.