← Questions

Same-value region from a start pixel, and its border

0
MetaCodingLast asked Jul 2025

An image is a grid of 0s and 1s. From a starting pixel, find every connected pixel with the same value. Follow-up: return the region's border, the neighbouring pixels that are not part of it.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding