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


    Question

    Which sorting algorithm is not stable by

    default?
    A Merge Sort Correct Answer Incorrect Answer
    B Bubble Sort Correct Answer Incorrect Answer
    C Insertion Sort Correct Answer Incorrect Answer
    D QuickSort Correct Answer Incorrect Answer
    E Counting Sort Correct Answer Incorrect Answer

    Solution

    QuickSort doesn’t guarantee order of equal elements unless modified; others (except selection sort) can be stable.

    Practice Next
    ask-question