Skip to content

Commit d69bf20

Browse files
authored
docs: add link to floodFill algorithm
1 parent 1e14bec commit d69bf20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/thealgorithms/others/IterativeFloodFill.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ private static boolean shouldSkipPixel(final int[][] image, final int x, final i
4646
* @param y The y co-ordinate at which color is to be filled
4747
* @param newColor The new color which to be filled in the image
4848
* @param oldColor The old color which is to be replaced in the image
49+
* @see <a href=https://www.geeksforgeeks.org/dsa/flood-fill-algorithm>FloodFill BFS<a/>
4950
*/
5051
public static void floodFill(final int[][] image, final int x, final int y, final int newColor, final int oldColor) {
5152
if (image.length == 0 || image[0].length == 0 || newColor == oldColor || shouldSkipPixel(image, x, y, oldColor)) {

0 commit comments

Comments
 (0)