1.

The time complexity of the code that determines the number of inversions in an array using merge sort is lesser than that of the code that uses loops for the same purpose.(a) true(b) falseI want to ask this question from Arrays Types topic in section Arrays Types of Data Structures & Algorithms II had been asked this question in homework.

Answer»

The CORRECT choice is (a) true

The best explanation: The time complexity of the CODE that determines the number of inversions in an array using merge SORT is O(n LOG n) which is LESSER than the time complexity taken by the code that uses loops.



Discussion

No Comment Found

Related InterviewSolutions