Commit graph

2 commits

Author SHA1 Message Date
95c244102f Solve 2021:9 "Smoke Basin" part 2
Yet again I got stuck in the common AOC trap: The example input worked,
but not the actual input.

2 things got me stuck.

> The size of a basin is the number of locations within the basin, including the low point. The example above has four basins.

1. I missed the obvious part to only check the low points.

2. Based on the example, I asumed that the adjacent locations would
   increase by one to count. This is wrong: What matters is that their
   height is a larger value.

Way too long time for a simple problem. Never read puzzles sloppy.
2021-12-09 11:00:28 +01:00
c7753f58fc Solve 2021:9 "Smoke Basin"
Had to rewrite whole solution due to getting the example input right,
but wrong on the actual puzzle input. Off by like 20.
2021-12-09 07:39:53 +01:00