摘要: 一道归并排序求逆序对的变体题。需要注意的是输入数据乘以2后可能超出int范围。 AC代码如下: 1 class Solution { 2 vector<int> merge(vector<int> a1, vector<int> a2, int& sum) 3 { 4 vector<int> mer 阅读全文
posted @ 2017-11-17 14:31 Al_X 阅读(243) 评论(0) 推荐(0) 编辑