Examveda

What is the time complexity of the code that uses self balancing BST for determining the number of inversions in an array?

A. O(n2)

B. O(n)

C. O(log n)

D. O(n log n)

Answer: Option D


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures