3 ms·
This is correct, and is noted in the Wikipedia article's discussion of memory usage[1]. (Which I was only reading because I was erroneously thinking that quick
by deathanatos 10y ago
This is correct, and is noted in the Wikipedia article's discussion of memory usage[1].
(Which I was only reading because I was erroneously thinking that quicksort was O(1) memory – I was completely forgetting stack space.)
[1]: https://en.wikipedia.org/wiki/Quicksort#Space_complexity https://en.wikipedia.org/wiki/Quicksort#Space_complexity