public class Solution { static int count = 0; public int InversePairs(int [] array) { // 核心思路是归并排序,与之类似的题目有小和问题 if (array == null && array.length < 2){ return 0; } process(array, 0, array.length - 1); return count; } public static void process(int[] arr, int left, int right){ if (l...