摘要:
1 2 3 public class MyInsertSort { 4 public static void main(String[] args) { 5 int num[] = {10, 8, 33, 54, 1, 6, 12, 43, 32, 27}; 6 insertSort(num); 7 阅读全文
摘要:
public class MyBubbleSort { public static void main(String[] args) { int num[] = {10,8,33,54,1,6,12,43,32,27}; bubbleSort(num); for (int i = 0; i < nu 阅读全文
摘要:
public class MySelectSort { /* 选择排序 */ public static void main(String[] args) { int num[] = {10,8,33,54,1,6,12,43,32,27}; selectSort(num); for (int i 阅读全文
摘要:
快速排序是对冒泡排序的一种改进。 1 import java.util.Random; 2 3 public class MyQuickSort { 4 5 //快速排序--啊哈算法 6 public static void main(String[] args) { 7 Random random 阅读全文