1.

What is the average number of inversions in an array of N distinct numbers?

A. N(N-1)/4
B. N(N+1)/2
C. N(N-1)/2
D. N(N-1)/3
Answer» B. N(N+1)/2


Discussion

No Comment Found