Question
What is the space complexity of quick sort and merge sort algorithm?A. $O(n \log 2 n), O(\log 2 n)$B. $O(\log 2 n), O(n)$C. $O(n), O(\log 2 n)$D. $\mathrm{O}(1), \mathrm{O}(\mathrm{n})$
Step 1
Quick Sort is an in-place sorting algorithm that uses recursion. The main space requirement comes from the recursion stack. Show more…
Show all steps
Your feedback will help us improve your experience
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD