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


    Question

    The worst case occur in quick sort when

    _____
    A Pivot is the median of the array Correct Answer Incorrect Answer
    B Pivot is the smallest element Correct Answer Incorrect Answer
    C Pivot is the largest element Correct Answer Incorrect Answer
    D Both b and c Correct Answer Incorrect Answer

    Solution

    It occurs when the number is smallest or largest

    Practice Next

    Relevant for Exams:

    ask-question