Загрузка...

Advent of Code 2024: Day 18

Visualisation of Advent of Code 2024 Day 18

Green is a shortest path from top left to bottom right (if it exists). Red is the first byte dropped that prevents escape to the bottom right.

BFS to determine if a path exists, DFS on the result from BFS to find the path.

Created with Python, code can be found here: https://github.com/adocilesloth/adventofcode2024/blob/master/Day18-Visualisation.ipynb

Original problem can be found here: https://adventofcode.com/2024/day/18

Видео Advent of Code 2024: Day 18 канала A Docile Sloth
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять