Advent of Code 2024 Day 12 (Part 1)

Описание к видео Advent of Code 2024 Day 12 (Part 1)

Only solved part 1, got stuck with part 2 and needed hints. Got the hint to check for outward/inward corners.

/*
Check outward or inward corner

// outward, if A was - top left, btm left, btm right, top right
B B A A B B *
B A * B B * A B

Basically, both neighbours have to be different, opposite can be anything, even out of bounds

// inward - same as above
B A A A A A A B
A A B A A B A A

Both neighbours have to be same, opposite has to be different. Opposite can be out of bounds
*/

Комментарии

Информация по комментариям в разработке