Advent of Code 2023 - Day 18 Explanation

Опубликовано: 01 Апрель 2026
на канале: Jonathan Paulson
1,610
52

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

I wasn't able to solve part 2 without looking at other people's solutions. Pick's theorem (to reduce the problem to finding perimeter and area) and Green's theorem (to compute the area) combine to provide a very elegant solution IMO.