PUZZLE #4582: Watershed D8 Flow Model (diff 7)
A 8×8 elevation grid. Compute D8 flow accumulation — drainage area per cell maps to letters.
DATA
| Elevation |
[40, 88, 45, 52, 11, 51, 20, 68], [66, 19, 14, 78, 45, 63, 80, 39], [25, 50, 87, 85, 82, 23, 62, 13], [71, 25, 77, 45, 30, 13, 33, 85], [88, 28, 48, 38, 11, 18, 44, 36], [20, 39, 42, 52, 86, 48, 18, 72], [29, 44, 29, 11, 48, 71, 53, 66], [38, 43, 80, 40, 44, 64, 85, 30]
|
| Grid Size |
8
|
| N Chars |
6
|
| Hint |
For each cell: find lowest neighbor (8-directional). Water flows that way. Accumulate flow from upstream cells. Sort outlet cells by accumulation -> letters.
|
| Answer Format |
lowercase letters, no spaces or punctuation
|
author's note: Pool fill: watershed diff 7
— website sponsored —
[ ad space ]