import java.util.*; public class Solution { int count = 0; public int InversePairs(int [] array) { // 长度小于2则无逆序对 if (array.length < 2) return 0; // 进入归并 mergeSort(array, 0, array.length - 1); return count; } public void mergeS...