摘要: public class QuickSort { public static void main(String[] args) { int[] arr = { 49, 38, 65, 97, 23, 22, 76, 1, 5, 8, 2, 0, -1, 22 }; quickSort(arr, 0, arr.length - 1); Sys... 阅读全文
posted @ 2019-04-21 22:42 菜霸 阅读(126) 评论(0) 推荐(0)
摘要: public class binSearch { public static void main(String[] args) { int ary[] = {1,5,3,54,32,643,34,2543}; System.out.println(binSearch(ary,0,ary.length-1,643)); } publi... 阅读全文
posted @ 2019-04-21 22:39 菜霸 阅读(151) 评论(0) 推荐(0)