Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 170 Bytes

File metadata and controls

5 lines (4 loc) · 170 Bytes

在二分搜索程序中,为什么用的是 mid = beg + (end - beg) / 2 , 而非 mid = (beg + end) / 2

答:因为两个迭代器相加是非法操作。