Learning Rust By Solving Leetcode Problems.
I believe the best way to learn and improve your skills is by practicing and the best way to do so is by solving problems, a lot of problems.
Fortunately, Leetcode has a lot of them, and here we are attempting to provide (hopefully) the best and idiomatic solutions for these problems hoping that will help you find new ways to think in Rust.
We are assuming that you have Rust installed already, if not please π do.
All solutions are organized in separate directories according to there difficulty level (easy, medium, hard), and every solution is provided as library and all code should be contained in one single file (usually lib.rs
), for example the Two Sum should be located in easy/two-sum/src/lib.rs
.
Here you can find the list of solved problems:
Please see the [Contribute]. file for more details.
Any support is welcome. At least you can give us a star β
LeetCode Rust is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in LeetCode Rust by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
- Logo: static-assertions-rs's Logo mixed with original LeetCode Logo.