- 博客(1)
- 收藏
- 关注
转载 java实现各种算法
最近复习一下各种算法,把它们写在这里,留着备用,呵呵。 /** * 冒泡排序 * 时间复杂度:O(n^2) */ public static void maoPaosort(int[] array) { for (int i = 1; i for (int j = 0; j if (array[j] > array[j + 1]) { int temp = array[
2012-09-06 12:24:16 115
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人