Question

    Which of the following sorting algorithms has a

    worst-case time complexity of O(n^2)?
    A Merge sort Correct Answer Incorrect Answer
    B Quick sort Correct Answer Incorrect Answer
    C Bubble sort Correct Answer Incorrect Answer
    D Insertion sort Correct Answer Incorrect Answer

    Solution

    Bubble sort

    Practice Next

    Relevant for Exams: