Neural Ninjas Β· DSA Simulation Labs Β· Lab 35

πŸͺ£ The Flood Fill Sandbox

Click a pixel, and the queue grows one ring at a time β€” up, down, left, right β€” repainting every same-colored pixel it can reach, and stopping dead the instant it hits a different color. That boundary check is the entire algorithm.

Queue Log

Controls

πŸͺ£ BucketI only ever check the 4 pixels touching the one I just painted β€” never diagonals. Same color as where I started? I queue it. Different color? I leave it completely alone.
🟦 PixelI get queued exactly once, painted exactly once. Once I'm a new color, nothing checks me again β€” there's no reason to.
Pick a level above to begin.