Q. Which is the safest method to choose a pivot element? (Solved)

1. choosing a random element as pivot

2. choosing the first element as pivot

3. choosing the last element as pivot

4. median-of-three partitioning method

  • a. choosing a random element as pivot
Subscribe Now

Get All Updates & News