摘要: 一、 Binary Search 1 int binarySearch(vector &array, int target) 2 { 3 int lo = 0, hi = array.size() - 1; 4 while (lo target) 8 hi... 阅读全文
posted @ 2015-06-13 14:24 Ryan in C++ 阅读(218) 评论(0) 推荐(0) 编辑