mid = (left + right) / 2 计算,可是,如果left大,right也很大,可能导致溢出,所以为了防止溢出,
一般使用 mid = left + (right - left) / 2 这个公式。