SIGN IN SIGN UP

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

34087 0 0 JavaScript

refactor: reduce code duplication in `FloodFill` (#1645)

* tests: add tests checking if floodFill funtions throw when location is outside

* refactor: reduce code duplication by adding `checkLocation` to `FloodFill`

* refactor: add and use `isInside`

Co-authored-by: appgurueu <34514239+appgurueu@users.noreply.github.com>

* Deduplicate further

---------

Co-authored-by: appgurueu <34514239+appgurueu@users.noreply.github.com>
P
Piotr Idzik committed
d920e7f4276f982fcad8016a9c63435cd346e6bd
Parent: d02e402
Committed by GitHub <noreply@github.com> on 4/3/2024, 3:24:06 PM