摘要: /** * 二分查找,寻找目标值的下标,如果找到返回下标,如果没有返回-1 * @param list * @param target * @return */ public int binarySearch(int[] list, int target){ int low = 0, high = 阅读全文
posted @ 2017-11-02 17:07 高疯疯疯 阅读(166) 评论(0) 推荐(0) 编辑