What is the space complexity of the code that uses merge sort for determining the number of inversions in an array?
(b) O(log n)
(d) O(n log n)
My query is from Arrays Types in portion Arrays Types of Data Structures & Algorithms I
I have been asked this question in an international level competition.