Loading... ```cpp // 1 while (l < r) { mid = l + r >> 1; if (check(mid)) r = mid; else l = mid + 1; } // 2 while (l < r) { mid = l + r + 1 >> 1; if (check(mid)) l = mid; else r = mid - 1; } ``` Last modification:February 26, 2023 © Allow specification reprint Like 0 如果觉得我的文章对你有用,请随意赞赏
Comment here is closed