18
๐ช - 2023 DAY 7 SOLUTIONS -๐ช
(programming.dev)
An unofficial home for the advent of code community on programming.dev!
Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
Solution Threads
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 |
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
console.log('Hello World')
Python
Part 1: https://github.com/porotoman99/Advent-of-Code-2023/blob/main/Day%207/part1.py
Code
Part 2: https://github.com/porotoman99/Advent-of-Code-2023/blob/main/Day%207/part2.py
Code
I tried to do this one as quickly as possible, so the code is more messy than I would prefer, but it works, and I don't think the solution is too bad overall.
Edit: I went back and changed it to be a bit better. Here are my new solutions:
Part 1 v2: https://github.com/porotoman99/Advent-of-Code-2023/blob/main/Day%207/part1v2.py
Code
Part 2 v2: https://github.com/porotoman99/Advent-of-Code-2023/blob/main/Day%207/part2v2.py
Code