My solutions to Advent of Code.
- Using Python (>=3.9)
- Only python standard library, no external package
solution_draft.ipynbis the solution used for contest- For some puzzles a
soultion.ipynbexists, containing a cleaned up and commented solution - Not highly optimized, but all solutions are finding a solution in seconds or max. some minutes.
- Use regular expressions for parsing lines
findallto get a list of matches
- Everything from
functools,itertoolsandcollections - Use complex numbers and sets to represent two-dimensional grid data