[algogeeks] Fill tool

2011-12-04 Thread rajesh ko
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 -

Re: [algogeeks] Fill tool

2011-12-04 Thread sunny agrawal
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