Day 5 shows a group of stacks of crates that I need to parse, and then execute a series of instructions against, slightly differently in each of the two parts. I'll use Python with default dicts representing my stacks.
Code 2022 AOC: https://gitlab.com/0xdf/aoc2022
Challenge Link: https://adventofcode.com/2022/day/5
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
#adventofcode #python
[00:00] Introduction
[00:21] Part 1 description
[01:26] Generating stub, looking at input
[01:50] Breaking down three parts
[02:07] Parsing initial crate placements
[08:27] Running instructions to move crates
[10:14] Printing crates along each move to check
[12:52] Building part1 solution string
[13:38] Part 2 description
[13:54] Adding part2
На этой странице сайта вы можете посмотреть видео онлайн Day 5: Supply Stacks [AOC2022 Python] длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь 0xdf 05 Декабрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 434 раз и оно понравилось 16 зрителям. Приятного просмотра!