/advent-of-code-2019

My Advent of Code (Season 2019) Solutions written in Python

Primary LanguagePythonMIT LicenseMIT

Advent of Code 2019

My Advent of Code (Season 2019) solutions written in Python 3.8. I will highlight some of the interesting Python mechanisms I am using on Twitter, so feel free to follow me.

Puzzle Solution Tips & Tricks
Day 1 Part 1 and Part 2 Assignment Expressions
Day 2 Part 1 and Part 2 Slicing Notation
Day 3 Part 1 and Part 2 List Comprehension
Day 4 Part 1 and Part 2 Short Circuiting
Day 5 Part 1 and Part 2 Zero Padding with F-Strings
Day 6 Part 1 and Part 2 Intersection of Sets
Day 7 Part 1 and Part 2 Permutations from Itertools
Day 8 Part 1 and Part 2
Bonus: Animated Solution
Avoiding Line Breaks with Print
Day 9 Part 1 and Part 2 Defaultdict from Collections
Day 10 Part 1 and Part 2 Sorting with Function as Key
Day 11 Part 1 and Part 2
Bonus: Animated Solution
Using Modulo for Turning
Day 12 Part 1 and Part 2 Regex based Integer Extractor
Day 13 Part 1 and Part 2 -
Day 14 Part 1 and Part 2 -
Day 15 Part 1 and Part 2
Bonus: Animated Solution
Calling Function from List
Day 16 Part 1 and Part 2 Using Deques for Shifting
Day 17 Part 1 and Part 2 -
Day 18 Part 1 and Part 2 -
Day 19 Part 1 and Part 2 -
Day 20 Part 1 and Part 2 -
Day 21 Part 1 and Part 2 -
Day 22 Part 1 and Part 2 Calculating the Modular Multiplicative Inverse
Day 23 Part 1 and Part 2
Bonus: Animated Solution
-
Day 24 Part 1 and Part 2 Counting with List Comprehensions
Day 25 Part 1 -