/hacker-challenge-9-14-2023

Adjacent Pixel Color Replacement!

Primary LanguagePython

Hacker Challenge 9/14/2023

Given a 2-D matrix representing an image, a location of a pixel in the screen and a color C, replace the color of the given pixel and all adjacent same colored pixels with C.

For example, given the following matrix, and location pixel of (2, 2), and 'G' for green:

B B W W W W W W W B B B

Becomes

B B G G G G G G G B B B