All Projects → Aloxaf → LeetCode-Rust

Aloxaf / LeetCode-Rust

Licence: WTFPL License
听说刷题建 repo 是立 flag 一般的行为?

Programming Languages

rust
11053 projects
shell
77523 projects

LeetCode-Rust

听说 LeetCode 添加了 Rust 支持, 这岂不是双倍的快(fu)乐(za)?
于是来体验一下

用 Rust 写题真是酸爽无比啊! (各种意义上的)

刷了几天的感受

Rust 运行速度是真 TM 快

有了 NLL 以后与 borrow checker 作斗争的次数也少了, 体验大幅上升

是刷题的不二之选

以上不包括使用了非标准库的链表、树等数据结构的题目

常用命令

测试

cargo test --lib add_binary -- --nocapture

Benchmark

cargo bench --lib length_of_last_word -- --nocapture
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].