Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
encse committed Dec 21, 2024
1 parent 13951be commit 5244f8d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 2024/Day21/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## --- Day 21: Keypad Conundrum ---
As you teleport onto Santa's [Reindeer-class starship](/2019/day/25), The Historians begin to panic: someone from their search party is <em>missing</em>. A quick life-form scan by the ship's computer reveals that when the missing Historian teleported, he arrived in another part of the ship.
As you teleport onto Santa's _Reindeer-class starship_, The Historians begin to panic: someone from their search party is <em>missing</em>. A quick life-form scan by the ship's computer reveals that when the missing Historian teleported, he arrived in another part of the ship.

The door to that area is locked, but the computer can't open it; it can only be opened by <em>physically typing</em> the door codes (your puzzle input) on the numeric keypad on the door.

_Visit the website for the full story and [full puzzle](https://adventofcode.com/2024/day/21) description._

Work In Progress...
13 changes: 13 additions & 0 deletions 2024/Day21/Solution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ namespace AdventOfCode.Y2024.Day21;
[ProblemName("Keypad Conundrum")]
class Solution : Solver {

/*
_________ _______
|\ /|\__ __/( ____ )
| ) ( | ) ( | ( )|
| | _ | | | | | (____)|
| |( )| | | | | _____)
| || || | | | | (
| () () |___) (___| )
(_______)\_______/|/
*/


public object PartOne(string input) {
return input.Split("\n").Sum(line => Solve2(line, 2).Item1);
}
Expand Down

0 comments on commit 5244f8d

Please sign in to comment.