摘要: { int x; //定义变量 int left=0,t=0; int right=n-1; while(left<=right) //设置while循环条件,当left<=right即为数组有至少一个元素,可进行循环查找。 { int mid=(left+right)/2; //二分法的基本思想, 阅读全文
posted @ 2018-10-14 10:39 北南xxx极光 阅读(237) 评论(0) 推荐(0)