InterviewSolution
Saved Bookmarks
| 1. |
What is the space complexity of the code that uses merge sort for determining the number of inversions in an array?(a) O(n)(b) O(log n)(c) O(1)(d) O(n log n)My query is from Arrays Types in portion Arrays Types of Data Structures & Algorithms II have been asked this question in an international level competition. |
|
Answer» Right ANSWER is (a) O(n) |
|