krahets / hello-algo

《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 代码。简体版和繁体版同步更新,English version ongoing
https://www.hello-algo.com
Other
97.79k stars 12.39k forks source link

fix(Rust): Update my_heap.rs #1309

Closed rongyi closed 6 months ago

rongyi commented 6 months ago

First I find here using pop is better than remove, but I'm hesitate to create a PR for this(in case some inconsistent) until I found cpp is using pop_back() too. so here I am :)