Re: [algogeeks] Re: Intrestting problem

2013-06-12 Thread Nishant Pandey
juat want to ask why the last region was not flipped from o to x? On Tue, Jun 11, 2013 at 11:57 PM, Don dondod...@gmail.com wrote: // Flip a region including location (x,y) from from to to. // Returns true if region is surrounded. bool flip(char board[][], int n, int x, int y, char from,

[algogeeks] Re: Intrestting problem

2013-06-12 Thread Don
It touches an edge of the region, and is therefore not surrounded. On Jun 12, 2:39 am, Nishant Pandey nishant.bits.me...@gmail.com wrote: juat want to ask why the last region was not flipped from o to x? On Tue, Jun 11, 2013 at 11:57 PM, Don dondod...@gmail.com wrote: // Flip a region