Visit Advent of Code to participate and solve the puzzles.
Currently, I am attempting the challenge with Python. I may add solutions in other languages in the future. :D
In addition to each day's solution, a benchmark script is also included in the same folder to measure the average runtime of the solution.
Year | Day | Title | Part | Language | Time (s) | Solution |
---|---|---|---|---|---|---|
2023 | 1 | Trebuchet?! | 1 | Python 3.12 | 0.000467 | Here |
2023 | 1 | Trebuchet?! | 2 | Python 3.12 | 0.008967 | Here |
2023 | 2 | Cube Conundrum | 1 | Python 3.12 | 0.000346 | Here |
2023 | 2 | Cube Conundrum | 2 | Python 3.12 | 0.000327 | Here |
2023 | 3 | Gear Ratios | 1 | Python 3.12 | 0.001239 | Here |
2023 | 3 | Gear Ratios | 2 | Python 3.12 | 0.000867 | Here |
2023 | 4 | Scratchcards | 1 | Python 3.12 | 0.000537 | Here |
2023 | 4 | Scratchcards | 2 | Python 3.12 | 0.496596 | Here |
2023 | 5 | If You Give A Seed A Fertilizer | 1 | Python 3.12 | 0.000177 | Here |
2023 | 5 | If You Give A Seed A Fertilizer | 2 | Python 3.12 | 0.001316 | Here |
2023 | 6 | Wait for It | 1 | Python 3.12 | 0.000014 | Here |
2023 | 6 | Wait for It | 2 | Python 3.12 | 0.813444 | Here |
The execution time is an average of 50 runs and is measured using the timeit library in Python 3.12.
Note: The input files for each puzzle have been intentionally excluded to comply with the Advent of Code terms and to avoid copying or redistributing any part of the content.