先看解法:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static inline int* binarySeach(int* result, int* nums, int numsSize, int target) {
int mid = (int)(numsSize / 2);
int left_index = 0, right_index = numsSize - 1;
while (left_index <= mid) {
if (nums[left_index] == target) {
if (result[0] ==