We have given a black and white image and a fill tool that turn an
area of black pixel into white pixels. Fill tool works like a 8-way
floodfill tool.So it will turn each black pixel to a white pixel
untill there isn't a blackpixel that can be reached from the previous
pixel. (8 ways -
http://www.gild.com/challenges/details/295
No of connected components, use BFS/DFS
On Sun, Dec 4, 2011 at 9:12 PM, rajesh ko ko.rajes...@gmail.com wrote:
We have given a black and white image and a fill tool that turn an
area of black pixel into white pixels. Fill tool works like a 8-way