摘要: public class Search { public static void main(String[] args) { int[] arr = {12,16,30,45,63,79}; int index = binarySearch(arr, 16); System.out.println( 阅读全文
posted @ 2021-06-02 11:13 沧海飞尘w 阅读(37) 评论(0) 推荐(0)
摘要: public class Sort{ public static void main(String[] args) { //int[] arr = {2,5,1,6,9,3}; int[] arr = {12,20,5,16,15,1,30,45,23,9}; quickSort(arr, 0, a 阅读全文
posted @ 2021-06-02 10:20 沧海飞尘w 阅读(48) 评论(0) 推荐(0)