摘要: 1 import java.util.*; 2 3 public class BinarySearch { 4 5 public static final int NO_SUCH_KEY = -1; 6 7 public static int search(int[] keys, int key) { 8 if(keys == null || keys.length == 0) 9 return NO_SUCH_KEY;10 11 return searchImpl(keys, key, ... 阅读全文
posted @ 2013-06-03 22:39 李土鳖 阅读(195) 评论(0) 推荐(0) 编辑