advent-of-code/2021-python/tests
Anders Ytterström 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
..
__init__.py 🔧 Setup Advent of Code 2021 2021-10-22 17:17:55 +02:00
test_day_01.py Solve 2021:1 "Sonar sweep" 2021-12-01 06:38:45 +01:00
test_day_02.py Solve 2021:2 "Drive!" 2021-12-02 06:42:42 +01:00
test_day_03.py Solve 2021:3 "Binary Diagnostic" 2021-12-03 07:29:34 +01:00
test_day_04.py Solve 2021:4 "Giant squid" 2021-12-04 07:12:00 +01:00
test_day_05.py Solve 2021:5 "Hydrothermal Venture" 2021-12-05 08:30:54 +01:00
test_day_06.py Solve 2021:6 "Lanternfish" part 2 2021-12-06 07:49:46 +01:00
test_day_07.py Solve 2021:7 "The Treachery of Whales" 2021-12-07 09:47:54 +01:00
test_day_08.py Solve 2021:8 "Seven Segment Search" 2021-12-08 11:35:18 +01:00
test_day_09.py Solve 2021:9 "Smoke Basin" part 2 2021-12-09 11:00:28 +01:00