项目作者: Aloxaf

项目描述 :
听说刷题建 repo 是立 flag 一般的行为?
高级语言: Rust
项目地址: git://github.com/Aloxaf/LeetCode-Rust.git
创建时间: 2018-12-20T09:13:47Z
项目社区:https://github.com/Aloxaf/LeetCode-Rust

开源协议:Do What The F*ck You Want To Public License

下载


LeetCode-Rust

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

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

刷了几天的感受

Rust 运行速度是真 TM 快

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

是刷题的不二之选

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

常用命令

测试

  1. cargo test --lib add_binary -- --nocapture

Benchmark

  1. cargo bench --lib length_of_last_word -- --nocapture