BinarySearch,逆序排列的数组的二分查找(折半查找),C++非递归+递归实现

1 // To Compile and Run: g++ binary_search.cc -std=c++11 -Wall -O3 && ./a.out 8 2 3 4 #include <stdlib.h> 5 #include <assert.h> 6 7 #include <iostream
posted on 2020-09-13 00:35  _bob  阅读(236)  评论(0编辑  收藏  举报