Gate2019 cs Q30

  • Option : A
  • Explanation :
    Given an array of 25 distinct elements, and pivot element is chosen uniformly randomly. So, there are only 2 worst case position in the pivot element is either first (or) last.
    Therefore, required probability is,
    = 2/25
    = 0.08
    So, option (A) is correct.
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 *