会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Love63
博客园
首页
博问
闪存
新随笔
订阅
管理
2016年8月17日
折半查找(递归和非递归实现)
摘要: 1 #include "stdafx.h" 2 #include 3 using namespace std; //折半查找(非递归调用) 6 bool binarySearch(int *arr,int low,int high,int key) 7 { 8 while (low key) { 11 high = mid - 1; 12 ...
阅读全文
posted @ 2016-08-17 22:12 Love63
阅读(476)
评论(0)
推荐(0)
编辑