Solutions to the Advent of Code puzzles
- My Solution (Python)
- Implemented class:
Machine
- My Solution (Python)
- Implemented classes:
Graph,Point,Line,Circuit
- My Solution (Python)
- Implemented classes:
Dial
- My Solution
- An efficient solution is similar to that in 2021-06 (Lanternfish). Keep a list of buckets for the pairs, calculate the next step per bucket, and multiply the results per the number pairs in each bucket.
- Fully implemented the .NET IEquatable interface.
- My Solution
- Created a 'Point' class. Couldn't find an implementation on the .NET library.
- My Solution is a C# port of this Python solution.
- Created a C# 'DefaultDict' class to emulate what 'defaultdict' provides in Python.
- Created a 'Node' class, including full support for the IEquatable interface.
- My Solution
- Created a DumboOctopus class and a DumboOctopusCell derived class.
- Thought out the problem could be solved using a Queue and no recursion.
- Designed the algorithm outling using a Excel spreadsheet.
- My Solution
- Used recursion to find all locations in a basin.
- My Solution
- Used chryptography fundaments to decode the inputs.
- My Solution
- The key aspect for an efficient solution is that lanterfishes can be grouped by their number of days left, and the next day calculation needs only to be done on one instance per group.
- Used the .NET Diagnostics.Stopwatch Class to measure how long it takes to find a solution.
- My Solution (Python)
- Implemented classes:
Room
- My Solution (Python)
- Implemented classes:
ClassicKeypad,ModernKeypad
- My Solution (Python)
- Implemented classes:
Position,Direction, andVector
- My Solution (Python)
- Implemented classes:
PackageCombinator,PackageGroup,Sleigh
- My Solution (Python)
- Implemented classes:
Instruction,Runbook
- My Solution (Python)
- Implemented classes:
GameState
- My Solution (Python)
- Implemented classes:
Sue
- My Solution (Python)
- Implemented classes:
Ingredient,Cookie
- My Solution (Python)
- Implemented classes:
Reindeer
- My Solution (C#)
- Implemented classes:
Password
- My Solution (C#)
- Implemented classes:
LookAndSayNumber
- My Solution (C#)
- Classic Travelling Salesman Problem
- Used the GetPermutations algorithm
- Implemented classes:
Connection,Map,Route
- My Solution (C#)
- Implemented classes:
StringLiteral
- My Solution (C#)
- Implemented classes:
Wire,Command,Instructions - Used C# Bitwise and shift operators.
- My Solution (C#)
- Implemented classes:
Grid,Instructions - Used tuples for coordinates.
- My Solution (C#)
- Implemented classes:
PuzzleEntry
- My Solution (C#)
- Implemented classes:
Coordinates,House
- My Solution (C#)
- Implemented classes:
Package,Present