摘要: 775. 全局倒置与局部倒置 题解: 用归并排序求全局倒置(逆序对) 可以用树状数组求逆序对 class Solution { int num2 = 0; public boolean isIdealPermutation(int[] nums) { int n = nums.length; if 阅读全文
posted @ 2022-11-16 17:44 Eiffelzero 阅读(18) 评论(0) 推荐(0)