摘要: 时间复杂度:O(log2N) 证明: 阅读全文
posted @ 2018-02-22 16:29 AFreeMan 阅读(122) 评论(0) 推荐(0)
摘要: //C语言 int linearSearch(int *arr,int len,int key) { if(arr == NULL || len size_t linearSearch(const array &arr, const T key) { int i = 0; while (i < arr.size() && arr[i] != key) ... 阅读全文
posted @ 2018-02-22 16:09 AFreeMan 阅读(121) 评论(0) 推荐(0)