Solutions for Advent of Code in Rust.
Day | Part 1 | Part 2 |
---|---|---|
Day 1 | ⭐ | ⭐ |
Day 2 | ⭐ | ⭐ |
Day 3 | ⭐ | ⭐ |
Day 4 | ⭐ | ⭐ |
Day | Part 1 | Part 2 |
---|---|---|
Day 1 | 39.8µs |
51.8µs |
Day 2 | 40.5µs |
223.0µs |
Day 3 | 147.4µs |
334.6µs |
Day 4 | 194.5ms |
142.3ms |
Total: 337.64ms
cargo today # Scaffold, download input and read puzzle of the day!
cargo scaffold [day] --download # Scaffold and download input for specified day
cargo solve [day] # Solve for specified day
cargo solve [day] --submit [part] # Solve for day and submit/check solution
cargo test --bin [day] # Run tests for specified day
cargo time --all --store # Benchmark all solutions and update readme
cargo all # Solve for all days
cargo clippy # Lint code
cargo download [day] # Download input for day
cargo fmt # Format code
cargo read [day] # Read puzzle description for specified day
cargo scaffold [day] --download # Scaffold and download input for specified day
cargo solve [day] # Solve for specified day
cargo solve [day] --dhat # Solve and generate dhat-heap.json for https://nnethercote.github.io/dh_view/dh_view.html
cargo solve [day] --release # Solve for day with optimized release
cargo solve [day] --submit [part] # Solve for day and submit/check solution
cargo test # Run all tests
cargo test --bin [day] # Run tests for specified day
cargo time --all --store # Benchmark all solutions and update readme
cargo today # Scaffold, download input and read puzzle of the day!
- itertools: Extends iterators with extra methods and adaptors. Frequently useful for aoc puzzles.
- regex: Official regular expressions implementation for Rust.
- blessred.rs: A curated list of popular crates