会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
PosProteus
Fighting
首页
新随笔
联系
管理
2015年9月8日
二分查找 模板(升序数组)
摘要: 1 int binSearch(const int arr[],int low,int high,int key)2 {3 if(low>high)4 return -1;5 int mid=low+(high-low)/2;6 if(arr[mid] == key...
阅读全文
posted @ 2015-09-08 17:30 PosProteus
阅读(199)
评论(0)
推荐(0)
编辑
公告