flood fill
class Solution: def floodFill(self, image: List[List[int]], sr: int, sc: int, color: int) -> List[List[int]]: def dfs(y, x, color, base_color): if image[y][x] == color or image[y][x] != base_color: return image[y][x] = color for oy, ox in [(-1, 0), (1, 0), (0, -1), (0, 1)]: if not (0
2025.10.05