When running cargo run
, it will direct to the CLI tool which currently accepts the following inputs:
$i
will initialize the template submission file of "question #id".daily
will get the daily challenge.random
will get a random problem.solve $i
will move the submission file from theproblem
directory to thesolution
directory.all
will create a file for all problems.
Run cargo test test_{id}
to test the solution for "question #id".
ℹ️ Note: To see the output of your tests, you can run:
cargo test test_{id} -- --show-output
You can also run all tests by using
cargo test
orcargo test -- --show-output
.
- To bypass Cloudflare, please
cp .env.sample .env
, and setLEETCODE_COOKIE
with your cookie (can be found in Firefox or Chrome console).