摘要: 1 public int binarySearch(int[] nums, int target) { 2 int low = 0; 3 int high = nums.length; 4 while (low <= high) { 5 int mid = (low + high) / 2; 6 ... 阅读全文
posted @ 2016-08-22 17:05 Acode 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 public void bubbleSort(int[] nums) { 2 for (int i = 0; i < nums.length; i++) 3 for (int j = 0; j < nums.length - 1 - i; j++) { 4 if (nums[j] < nums[j + 1... 阅读全文
posted @ 2016-08-22 17:04 Acode 阅读(189) 评论(0) 推荐(0) 编辑
您是本站第访问量位访问者!