Day 3: Toboggan Trajectory

By Xander

problem Parsing the Input The input this time is a file consisting of ‘#’ and ‘.’ and we only need a list of each line. We can accomplish this by using the file.readlines() function. Part 1 The file above is a map of the terrain, which repeats indefinitely horizontally. The goal is to count the…

Day 2: Password Philosophy

By Xander

problem Parsing the Input The input is given with each line containing a range, letter, and a password. I found the easiest way to parse the input was using regular expressions or RegEx Part 1 In part 1 we are given a character that has to be in the password between a certain amount of…

Day 1: Report Repair

By Xander

problem The first day of the new years challenges came with a nice relaxing solution. Parsing the Input The input is given as a list of integers seperated by line breaks like the following. This can be parsed in python by reading the file, and creating a set containing the integer of each line. The…