会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Acjx
You are what you program
首页
管理
2015年8月4日
[算法专题] 二分搜索&排序数组
摘要: 基础知识 二分非递归写法: int binary_search(const int a[], const int size, const int val) { int lower = 0; int upper = size-1; /* invariant: if a[i]==val for any i, then lower >1; if (val ==...
阅读全文
posted @ 2015-08-04 20:00 Acjx
阅读(1131)
评论(0)
推荐(0)
编辑
公告