An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, sc) representing the starting pixel (row and ...
public int[][] floodFill(int[][] image, int sr, int sc, int color) { if (sc < image[sr].length - 1 && image[sr][sc] == color && image[sr][sc + 1] == startColour ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する