Question DSA-CX-0054
MediumWhat is the space complexity of merge sort on an array, including the recursion stack?
- A.
O(n log n)
- B.
O(1)
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Complexity Analysis question
What is the space complexity of merge sort on an array, including the recursion stack?
O(n log n)
O(1)
Sign up free to see the answer and a step-by-step explanation.
O(n)
O(log n)