二分查找

核心代码

流程图

问题:循环条件不能错,while循环判断条件为high>=low并且每次要么low=mid+1要么high=mid-1

posted on 2019-12-15 21:52  张靖恒  阅读(183)  评论(0编辑  收藏  举报