Flood Fill

題目

  • 733 Flood Fill (Easy)

  • 200 Number of Islands (Medium)

  • 1254 Number of Closed Islands (Medium)

  • 1020 Number of Enclaves (Medium)

  • 695 Max Area of Island (Medium)

  • 1905 Count Sub Islands (Medium)

  • 694 Number of Distinct Islands (Medium, Premium)

  • 1992 Find All Groups of Farmland

觀念

基本上都可以用dfs bfs 解決