📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which of the following sorting algorithms is

    stable?
    A QuickSort Correct Answer Incorrect Answer
    B MergeSort Correct Answer Incorrect Answer
    C HeapSort Correct Answer Incorrect Answer
    D SelectionSort Correct Answer Incorrect Answer
    E None of the above Correct Answer Incorrect Answer

    Solution

    MergeSort preserves the relative order of equal elements, making it stable.

    Practice Next
    ask-question