《【算法专题】二分查找(进阶)》1.因为取值左闭右边,f(x)函数需要取long类型,因为速度如果用1去计算,取值int类型值会溢出。 ——来自博客 https://blog.csdn.net/2301_80092713/article/details/135899426