摘要: 1. Binary Search 一个升序的整型数组,数组中的数字不重复。写一个函数,要求输入目标数字,返回这个 目标数字在数组里的下标,不存在则返回-1 要求时间复杂度为O(log n) Solution By C: 1 int search(int* nums, int numsSize, in 阅读全文
posted @ 2022-01-23 10:19 方山客 阅读(34) 评论(0) 推荐(0) 编辑