Under what condition the number of inversions in an array are minimum?

Q & ACategory: Data StructureUnder what condition the number of inversions in an array are minimum?
Admin Staff asked 4 years ago

Under what condition the number of inversions in an array are minimum?
a) when the array is sorted
b) when the array is reverse sorted
c) when the array is half sorted
d) depends on the given array

1 Answers
Admin Staff answered 4 years ago

a) when the array is sorted