Solution to leetcode daily challenges in rust.
To pull challenge code snippets (if slug is emit daily challenge is generated):
cargo generate $slug
To run a challenge:
cargo test $slug
- what should be the value of slug?
- If the URL of challenge is:
https://leetcode.com/problems/dota2-senate/
- Then the slug is
dota2-senate
- Note: ignore description in case of
https://leetcode.com/problems/dota2-senate/description/
- If the URL of challenge is: