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
Under what condition the number of inversions in an array are maximum?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Under what condition the number of inversions in an array are maximum?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!