Google Interview Question

write a code for the "Fill with color" tool functionality in MS Paint or Photoshop.

Interview Answer

Anonymous

Sep 10, 2014

Use the screen as 2D array and use recursion to color it, but be sure from the case when color_old = color_new, because if you get this with out if statement you will stuck in infinite loop.