二分查找(折半查找)
摘要:public static int binarySearch(int[] x,int key) { int start = 0; int end = x.length-1; while(true) { int mid = (start + end)/2; ...
阅读全文
posted @ 2015-05-20 09:51
posted @ 2015-05-20 09:51
posted @ 2015-05-20 08:58
posted @ 2015-05-19 14:06