Yqwed opened this issue 7 years ago · 0 comments
private def mid(l: Int, r: Int): Int = (l + r) / 2 will return wrong value when l + r > Int.MaxValue
private def mid(l: Int, r: Int): Int = (l + r) / 2
l + r > Int.MaxValue