二分查找

import java.util.Arrays; public class Test2 { public static void main(String[] args) { int[] a = {1,3,5,6,7,8,9,10,12,18,19,20,100}; System.out.println(binarySearch(a, 9));
相關文章
相關標籤/搜索