Run cargo run
and enter id
to initialize the template submission file of question #id.
Run cargo run
and enter solve id
to move question #id to solution folder.
Run cargo test
to test all solutions.
Run cargo test test_{id}
to test the solution for question #id.
- Remove all .rs files in problem/ and solution/
- Clean lib.rs, solution/mod.rs, problem/mod.rs files
- Start your leetcode journey in rust by typing
cargo run