Flood Fill

Try to solve the Flood Fill problem.

Statement

We are given the following values as input to begin with:

  • The coordinates of a source cell, i.e., sr and sc.

  • A target value, target.

  • An ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy