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
On this page of the site you can watch the video online Day 5: Supply Stacks [AOC2022 Python] with a duration of hours minute second in good quality, which was uploaded by the user 0xdf 05 December 2022, share the link with friends and acquaintances, this video has already been watched 434 times on youtube and it was liked by 16 viewers. Enjoy your viewing!