AoC 2021 Day 15 and 23 updated to use Go generics
Russ Cox — Jan 31, 2022 — tutorial
Why watch
This video demonstrates updating existing Advent of Code 2021 solutions for Day 15 (chiton pathfinding with risk levels) and Day 23 (Amphipod puzzle) to leverage Go 1.18 Beta 2's new generics feature. Russ Cox shows how to create a generic priority queue implementation that works for both puzzles, replacing previously duplicated type-specific code. Ideal for Go developers wanting to see practical real-world generics usage in algorithm problems.