Commit Graph

2 Commits

Author SHA1 Message Date
Lê Nam Khánh
a3717f0563 chore: fix typos in src/main/java/com/thealgorithms/others/IterativeFloodFill.java (#7042)
Fix typos in src/main/java/com/thealgorithms/others/IterativeFloodFill.java
2025-11-05 11:43:02 +02:00
CrodiYa
16557a9b81 Feature iterative flood fill (#6584)
* feat: FloodFill Algorithm with iterative approach

- nested class Point: helper class, represents point in 2D field (x,y)
- shouldSkipPixel method: helper method to validate point
- floodFill method: iterative version of floodFill, uses Queue to add and poll Points and change it color if allowed

* feat: tests for IterativeFloodFill

-same tests as for normal floodFill and test for a big image

* docs: add link to floodFill algorithm

* codeStyle fix

* tests: add tests for edge cases

* codeStyle fix

* codeStyle fix

* codeStyle fix

* refactor: reorganize structure and add JavaDoc

- Move private methods after public methods for better readability
- Add class-level JavaDoc documentation with algorithm description and links to references
2025-10-09 17:20:19 +00:00