摘要: 基于比较的排序(复杂度下界nlogn) 冒泡排序 时间复杂度 最坏O(n2) 平均O(n2) 最好O(n) 空间复杂度 O(1) 稳定 void bubbleSort(int *a, int n) { for (int i = n - 1, t; i; i = t) { t = i; for (in 阅读全文
posted @ 2020-07-29 14:53 watchphone 阅读(187) 评论(0) 推荐(0) 编辑