Set LEETCODE_COOKIE
in .env
file or environment variable first.
Run cargo run {id}
to initialize the template submission file of "question #id".
Run cargo test test_{id}
to test the solution for "question #id".
- Remove all the solution .rs
- Clean lib.rs file
- Start your leetcode journey in rust by typing
cargo run {question_id}