
ALGORITHMS
文章平均质量分 73
decamincow
这个作者很懒,什么都没留下…
展开
-
冒泡排序(JAVA)
package p20131210;public class T20131210 {public static void main(String[] args) {int test[] = { 0, 24, 2, 10, 7, 44, 3 };冒泡排序(test);for (int a = 0; a < test.length; a++) {System.out.println(test[a]);原创 2013-12-11 13:22:14 · 640 阅读 · 0 评论 -
选择排序(JAVA)
public class T20131210 { public static void main(String[] args) { int test[] = { 0, 24, 2, 10, 7, 44, 3 }; 选择排序(test); for (int a = 0; a < test.length; a++) { System.out.println(test[a]);原创 2013-12-11 14:30:32 · 523 阅读 · 0 评论 -
插入排序(JAVA)
public class T20131210 { public static void main(String[] args) { int test[] = { 0, 24, 2, 10, 7, 44, 3 }; 插入排序(test); for (int a = 0; a < test.length; a++) { System.out.println(test[a]);原创 2013-12-11 17:04:35 · 608 阅读 · 0 评论 -
快速排序(JAVA)
public class T20131210 { public static void main(String[] args) { int test[] = { 0, 24, 2, 10, 7, 44, 3 }; test = 快速排序(test,0,test.length-1); for(int a=0;a<test.length;a++)原创 2013-12-16 15:39:43 · 586 阅读 · 0 评论 -
去重复数据(JAVA)
public class RemoveDu { /** *By过忍 */ public static void main(String[] args) { //测试数据 ArrayList list = new ArrayList(); Random random = new Random(); for(int i = 0; i<10000; i++){ lis原创 2014-06-04 12:08:23 · 685 阅读 · 0 评论