Morgan Stanley interview question

How MS Paint bucket color fill tool work? Explain the algorithm.

Interview Answer

Anonymous

21 Oct 2015

Recursive four direction color fill algorithm, that was all I could think at the moment.