Is Quicksort in-place or not? [duplicate]
问题 This question already has answers here : Is imperative Quicksort in situ (in-place) or not? (2 answers) Closed 5 years ago . So the space efficiency of Quicksort is O(log(n)). This is the space required to maintain the call stack. Now, according to the Wikipedia page on Quicksort, this qualifies as an in-place algorithm, as the algorithm is just swapping elements within the input data structure. According to this page however, the space Efficiency of O(log n) disqualifies Quicksort from being