Advent of Code 2023 - Day 3

I’m not satisfied with my Part 2, either. It costs 300ms to run on my computer :face_with_spiral_eyes: