Question 10
Which of the following statements is/are true about the Quicksort algorithm to sort elements in ascending order? Assume that the last element in the list is selected as a pivot for partitioning each time.
The best case is when the pivot element always divides the list into two equalhalves.
The best case is when the input list is already arranged in ascending order.
The best case is when the input list is arranged in descending order.
The worst case is when the input list is arranged in either ascending ordescending order.