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

  • google app store apple app store
  • ✖

      Question

      Which is the safest method to choose a pivot element in

      quick sort?
      A choosing a random element as pivot Correct Answer Incorrect Answer
      B choosing the first element as pivot Correct Answer Incorrect Answer
      C choosing the last element as pivot Correct Answer Incorrect Answer
      D median-of-three partitioning method Correct Answer Incorrect Answer
      E None Correct Answer Incorrect Answer

      Solution

      The correct answer is A

      Practice Next
      ask-question