Skip to content

deniskrumko/advent-of-code

Repository files navigation

🎄 Advent Of Code 🎄

Some python-powered solution for Advent of Code.

Still humiliating this dog every year → https://github.com/tatinacher/advent-of-code

✨ _bonus_code ✨

Also this project is a place where I store my solutions for other problems, like these:

Year to year progress 📈

Click on year to see detailed progress of Advent of Code:

  • 2024 IN PROGRESS
  • 2023 ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
  • 2022 ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
  • 2021 ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
  • 2020 ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
  • 2019 ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
  • 2018 ⭐⭐⭐⭐
  • 2017 ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐

Project requirements 🛠️

  • Python 3.10.6 (upd. 2022-12-01)
  • numpy & pytest
make deps

How to create new dir for new task 📂

Run following command to automatically create new dir for puzzle (placed inside latest year dir):

make template

Output will be like:

Directory created: 2022/day_08

How to run solutions/tests 🏃‍♀️

To get puzzle results for specific day (for example, 2022/day_01), run command:

python3 2022/day_01/main.py

Output will be like this:

Your result (1): 71506
Your result (2): 209603

And if you need to run tests for same day, run command:

pytest 2022/day_01

About

My algorithms collection: Advent of Code, Leetcode and more

Topics

Resources

Stars

Watchers

Forks

Languages