What is the time complexity of the code that uses self balancing BST for determining the number of inversions in an array?
Q & A › Category: Data Structure › What is the time complexity of the code that uses self balancing BST for determining the number of inversions in an array?
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)