摘要: 昨天百度面试,问了这样一道题: 对于一个有序字符串数组,用二分法查找某一字符串是否存在于该字符串数组中。函数原型为:bool BinarySearch(const vector& array, const string& target) 注意这里的有序指的是字典序,如字符串数组 a, ab,... 阅读全文
posted @ 2015-09-24 11:23 峰子_仰望阳光 阅读(349) 评论(0) 推荐(0) 编辑