Loading repository data…
Loading repository data…
whoismtrx / repository
A collection of high-quality Advent of Code solutions. Focus on optimization, clean code, and detailed editorial explanations.
Welcome to Advent of Code Solutions Repository. This project serves as a central hub for sharing solutions, algorithms, and editorial explanations for the annual puzzles presented during the Advent of Code event. I invite everyone to contribute their code so we can learn from different approaches and languages. While the primary focus is the current year, solutions for previous years are also welcome. Feel free to explore and contribute to any year you like!
To maintain organization, please adhere strictly to the following directory structure.
Format:
/{Year}/Day{XX}/{Language}/{puzzle_name}_P{x}.{extension}
Example:
2024/
├── Day01/
│ ├── Python/
│ │ ├── Historian_Hysteria_P1.py
│ │ ├── Historian_Hysteria_P2.py
│ │ └── README.md <-- (Required: Your Editorial/Explanation)
│ └── C++/
│ ├── Historian_Hysteria_P1.cpp
│ ├── Historian_Hysteria_P2.cpp
│ └── README.md
└── Day02/
└── ...
We follow a strict Fork & Pull Request workflow.
main branch of this repository.If a solution already exists for a specific puzzle in your chosen language, you may still submit a Pull Request. However, for your PR to be accepted and merged, your solution must be demonstrably better than the existing one.
"Better" is defined as:
Code alone is not enough. Every submission must include a README.md file in the same folder as the solution. This file should contain an "Editorial" explaining your approach for both parts of the puzzle.
Editorial Template:
Please copy this into your README.md:
# Solution Explanation
## Part 1
### Approach
Describe the algorithm or logic you used to solve Part 1. (e.g., "I used a hash map to track frequency...")
### Complexity
- **Time Complexity:** O(?)
- **Space Complexity:** O(?)
## Part 2
### Approach
Describe how the requirements changed and how you adapted your algorithm.
### Complexity
- **Time Complexity:** O(?)
- **Space Complexity:** O(?)
Day01, Day05, Day12).historian_hysteria_P1.py, red_nosed_reports_P2.cpp). Generic names like main.cpp or solver.py are not allowed.Don't forget to join our private leaderboard for this year to track our local progress!
Code: 5188033-b5f04b6a
Happy Coding!