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

0
Remix

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.

MetaCodingLast asked Jul 2025
No answer yet. Write the first one; the best answer gets endorsed.