You are viewing a single comment's thread. Return to all comments →
I agree, I counted only times when right was greater than left, and although I would get sorted array, number of swaps did not match.
Seems like cookies are disabled on this browser, please enable them to open this website
Merge Sort: Counting Inversions
You are viewing a single comment's thread. Return to all comments →
I agree, I counted only times when right was greater than left, and although I would get sorted array, number of swaps did not match.