题目防错 给定 n,kn,kn,k 和长度为 kkk 的序列,请输出这个序列冒泡排序 kkk 趟以后的结果。 for (int step = 1; step <= k; step++) for (int i = 1; i < n; i++) if (a[i] > a[i + 1]) swap(a[i], a[i + 1]); 思路 我还没想出来(dog 先交个博客,想出来了再改