A repository with solutions for Project Euler problems implemented in the Rust programming language.
- Fork this repo.
- Create a binary in src/bin corresponding to your the euler problem number e.g
100.rs
- Implement your solution.
- Write some documentation.
- Write test(s) for your solution.
- Submit a pull request.
- Voila!
- The code you contribute is public domain.
- Don't be afraid of comments: the code is going to be written once, read hundreds of times, and maintained well past when you submit it.
- Keep your code as simple as possible.
- Please avoid compiler warnings.
- Rust Clippy is a great tool for linting your code.
- Use the
cargo run --bin {your-solution-number}
to run your solution e.gcargo run --bin 1
. - Use the
cargo test --bin {your-solution-number}
to test your solution e.g.cargo test --bin 1
.
- Improve an existing solution (increase readability, performance, etc.).
- Add tests.