Advent of Code 2023 - Day 6

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

20th on part 1; 50th on part 2; 2nd overall (!)

Pretty straightforward day. I was pretty slow on parsing, including a wrong answer due to failing to correctly concatenate some numbers (I wrongly assumed they were all single-digit).

I'm surprised the part 2 numbers weren't big enough to force a more efficient solution. I made a video on the binary search solution anyway:    • Advent of Code Day 6 - Binary Search  

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