← 返回 capitalone 的题目列表Water Flood Fill: Time to Wet Each Terrain Cell
类型:online_judge
capitalone
Given a 2D matrix of a terrain and a starting coordinate (row index, col index) of water to flood the area, output a matrix of the same size indicating the "time" when each spot gets wet.
Example
Input
3 3
0 0