1 Star 0 Fork 5

咸鱼1172 / interview

forked from idealzhang / interview 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SequentialSearch.h 141 Bytes
一键复制 编辑 原始数据 按行查看 历史
huihut 提交于 2018-03-09 22:41 . 修改顺序查找
// 顺序查找
int SequentialSearch(vector<int>& v, int k) {
for (int i = 0; i < v.size(); ++i)
if (v[i] == k)
return i;
return -1;
}
1
https://gitee.com/HouHuiChao/interview.git
git@gitee.com:HouHuiChao/interview.git
HouHuiChao
interview
interview
master

搜索帮助