Quicksort to already sorted array
问题 In this question: https://www.quora.com/What-is-randomized-quicksort Alejo Hausner told in: Cost of quicksort, in the worst case , that Ironically, if you apply quicksort to an array that is already sorted, you will get probably get this costly behavior I cannot get it. Can someone explain it to me. https://www.quora.com/What-will-be-the-complexity-of-quick-sort-if-array-is-already-sorted may be answer to this, but that did not get me a complete response. 回答1: The Quicksort algorithm is this: