摘要: 1 import java.util.ArrayList; 2 import java.util.List; 3 4 public class Solution { 5 /*String ann(int numbers, String charact){ 6 String s = charact.length(); 7 if (s.cont... 阅读全文
posted @ 2017-10-24 09:42 四季万花筒 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1 public class BubbleSort { 2 public int[] bubbleSort(int[] arr, int n){ 3 int temp = 0; 4 5 for (int i=0; i arr[j+1]){ 8 temp = arr[j]; 9 ... 阅读全文
posted @ 2017-10-24 09:37 四季万花筒 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1 public class QuickSort { 2 public void quickSort(int[] a, int left, int right){ 3 int i, j, t, temp; 4 if (left > right) 5 return; 6 7 temp =... 阅读全文
posted @ 2017-10-24 09:36 四季万花筒 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1 public class QuickSort { 2 public void quickSort(int[] a, int left, int right){ 3 int i, j, t, temp; 4 if (left > right) 5 return; 6 7 temp =... 阅读全文
posted @ 2017-10-24 09:36 四季万花筒 阅读(298) 评论(0) 推荐(0) 编辑