de-grote / aoc2022

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AoC 2022


My solutions for advent of code 2022.

This year I'll be doing it in python (again) as I'm not confident enough to use rust or any other language yet.


how to run:

Run main.py and input the day and part you want to solve,

Or you can run the relevant file as a script.

To replace my input by yours simply replace the input.txt file in the day you want to run.


my thoughts on each day

A bit of text describing my experience with creating a solution for a specific day.

  • day 1: It's the first day, and it shows in its easiness.

  • day 2: I may or may not have abused the ord function.

  • day 3: I love sets, and they love me.

  • day 4: Gotta love debugging 4 variables and a bunch of inequality signs early in the morning.

  • day 5: The debugging took longer than the parsing (skill issue).

  • day 6: Just a sliding window algorithm basically, nothing special here.

  • day 7: Finally got to use recursion in aoc again!

  • day 8: Bug fixing grids is a great way to spend your time.

  • day 9: A lot of if checks, but it's fine I guess.

  • day 10: I guess we're writing something completely different for part 2 then.

  • day 11: Shoutout to my maths teacher for teaching cryptography and number theory.

  • day 12: I hope we're not getting another "find the shortest path" day again this year...

  • day 13: Today was actually pretty easy for me. And part 2 looks way to clean in my code.

  • day 14: Actually pretty fun day, I think you can optimise part 2 using some fancy math no one has ever heard about though.

  • day 15: "As long as it works, it is good".

  • day 16: I have no idea how to write a depth first search, and it shows... This is also the first problem where I don't know if it works on all inputs.


Thanks for reading!

About


Languages

Language:Python 100.0%