《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 代码。简体版和繁体版同步更新,English version ongoing
96.11k
stars
12.19k
forks
source link
[Rust] Normalize mid calculation in case overflow #1363
Closed
rongyi closed 4 months ago
mid is always calculated with i + (j - i) / 2 in other place, so change it!