My Solutions for Advent of Code challenges

https://adventofcode.com/ | 2019 | 2018 | 2017 | 2015 by Eric Wastl


2019

My Solutions GitHub Repo

Day 8

Day 4

Day 2

Day 1

1 "Execution time" code included in all Python files taken from https://stackoverflow.com/questions/1557571/how-do-i-get-time-of-a-python-programs-execution
2 This solution takes 20-25 secs to load on my machine, actual time may vary.
3 Linchpin for Day 8, part II [ list(zip(*lists)) ] taken from https://stackoverflow.com/questions/2407398/how-to-merge-lists-into-a-list-of-tuples

2018

My Solutions GitHub Repo

Day 5

Day 2

Day 1

1 "Execution time" code included in all Python files taken from https://stackoverflow.com/questions/1557571/how-do-i-get-time-of-a-python-programs-execution
2 The Part II solution reuses the function from Part I.

2017

My Solutions GitHub Repo

Day 6

Day 4

Day 2

Day 1

1 "Execution time" code included in all Python files taken from https://stackoverflow.com/questions/1557571/how-do-i-get-time-of-a-python-programs-execution
2 In order to prevent duplication and doing math on same pair of numbers, use the index of the first number in the equation (outer loop).
3 Rather than track the occurrences of each string, use the count itself to increment a counter then compare with length of the list. If values are equal, then no strings are repeated. Lists of different lengths are supported.
4 The Part II solution reuses the function from Part I.

2015

My Solutions GitHub Repo

Day 2

Day 1

1 "Execution time" code included in all Python files taken from https://stackoverflow.com/questions/1557571/how-do-i-get-time-of-a-python-programs-execution