PA of Algorithms Q108

  • Option : C
  • Explanation :
    When first element or last element is chosen as pivot, Quick Sort‘s worst case occurs for the sorted arrays.
    In every step of quick sort, numbers are divided as per the following recurrence.
    T(n) = T(n-1) + O(n)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *