2014年8月4日

摘要: 思路:类似归并排序算法,在合并已经有序的相邻子数组的时候,计算前面数组相对于后面数组的逆序对数,整个递归过程可以算出所有逆序对#include void merge(int A[], int front, int middle, int end, int &count){ if (front ... 阅读全文
posted @ 2014-08-04 20:22 程序猿猿猿 阅读(180) 评论(0) 推荐(0)

导航