Day 5¶
Solution to day 5 of Advent of Code https://adventofcode.com/2018/day/5
Data preparation¶
Since both part 1 and two use the same data, we create a function to read and prepare the data in the file:
Advent of Code Day 4
Day 4¶
Solution to day 4 of Advent of Code https://adventofcode.com/2018/day/4
Data preparation¶
Since both part 1 and two use the same data, we create a function to read and prepare the data in the file:
Advent of Code Day 3
Day3¶
Solution to day 3 of Advent of Code https://adventofcode.com/2018/day/3
Data preparation¶
Since both part 1 and two use the same data, we create a function to read and prepare the data in the file:
Advent of Code Day 2
Day2¶
Solution to day 1 of Advent of Code https://adventofcode.com/2018/day/2
Part 1¶
Making use of Counter from collections to count the number of occurences of each letter.
Advent of Code Day 1
Advent of Code calendar¶
Solution to day 1 of Advent of Code https://adventofcode.com/2018/day/1
Day 1 part 1¶
Part one is simple list comprehension and sum: