Flood Fill a Picture
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
A picture is a grid of coloured pixels. Given a starting pixel and a new colour, repaint the starting pixel and every pixel connected to it, up, down, left or right, that had the same original colour, like a paint bucket tool. Explain your approach.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.