As a warmup for this year’s Advent of Code, I’m re-reading and posting my solutions to last year’s challenges. You can read, run and edit today’s solution by following the post link.

Quite a jump in difficulty today, requiring us to reconstruct and query a notional filesystem based on the results of a series of cd and ls commands. Building a simple graph revealed the required information.