ivkrotova/advent-of-code-2024
Advent of Code 2024 in Rust language
๐ Advent of Code 2024 - Rust Solutions ๐ฆ
Hi! Welcome to my Advent of Code 2024 repository. I hope you find it fun, helpful, or maybe just a little inspiring.
Iโm learning Rust while solving these puzzles, so expect lots of comments along the code and some trial and error.
Advent of Code is an annual calendar of programming puzzles that can be solved in any language. This year, Iโve chosen Rust because itโs new to me, and I'd like to learn the basics by solving small problems one day at a time.
Whether youโre a seasoned Rustacean or just here for some fun solutions, feel free to poke around!
๐ Whatโs Inside?
- Commented Solutions: Each solution comes with detailed comments explaining both the puzzle logic and Rust-specific syntax.
- Easy Navigation: Everything is organized by day so you can find what youโre looking for quickly.
- Open Source: Contributions are welcome! Whether itโs an alternative solution or just a suggestion to improve my Rust skills, Iโd love to hear from you.
๐ Getting Started
Hereโs how to try these solutions on your own machine:
Clone the Repository:
git clone https://github.com/your-username/AdventOfCode2024.git
cd AdventOfCode2024Install Rust:
If you donโt already have Rust installed, you can grab it from here.
Run a Solution:
cd advent-of-code-2024/
cargo run๐ Featured Solutions
Advent of Code puzzles are released daily, and Iโll be adding solutions here as I solve them. Each one links to the code and includes comments breaking down the approach. ๐
| Day | Title | Solution |
|---|---|---|
| 1 | Historian Hysteria | Day 1 Solution |
| 2 | Red-Nosed Reports | Day 2 Solution |
| 3 | Mull It Over | Day 3 Solution |
| 4 | Ceres Search | Day 4 Solution |
| 5 | Print Queue | Coming soon |
| 6 | Guard Gallivant | Coming soon |
| 7 | Bridge Repair | Coming soon |
| 8 | Resonant Collinearity | Coming soon |
| 9 | Disk Fragmenter | Coming soon |
| 10 | Hoof It | Coming soon |
| 11 | Plutonian Pebbles | Coming soon |
You can also check out the full list of puzzles directly on the Advent of Code website.
๐ Handy Resources
If youโre learning Rust too, here are some of the resources Iโve found helpful along the way:
- ๐ The Rust Programming Language (Book) โ Your go-to guide for all things Rust.
- ๐ฆ Rustlings โ A set of exercises that will walk you through the basics.
๐ Community and Contributions
The best part of Advent of Code is the community, and Iโd love for you to join in! Hereโs how you can contribute:
- Submit alternative solutions via pull requests.
- Open issues to suggest improvements or report bugs.
- Share your tips, questions, or ideas in the discussions tab.
How to Contribute:
- Fork this repository.
- Create a branch:
git checkout -b feature-name. - Commit your changes:
git commit -m "Add new feature". - Push your branch:
git push origin feature-name. - Open a pull request, and letโs chat!
Happy coding! ๐ฆโจ