Advent of Code 2023 - Day 7

Опубликовано: 29 Март 2026
на канале: Jonathan Paulson
6,256
93

I placed 4th on part 1; 61st on part 2; currently 2nd overall.

Part 1 went great. I've actually coded up "sort poker hands by strength" before.

Part 2 was relatively disappointing; I'm sure there's a simpler way of doing it but how? And I had a bug in part 2 where I wasn't handling the case where the 'J' was already the biggest group.

Problem: https://adventofcode.com/2023/day/7
Solution: https://github.com/jonathanpaulson/Ad...