This website is brought to you by CPCoders.We are working on Competitive Coding Algortihm Libraries for JavaScript. We are currently developing cpmath and cpcodes libraries.
Given a 2D screen, location of a pixel in the screen and a color, replace color of the given pixel and all adjacent same colored pixels with the given color.