@Ashish Goel : didnt get it :( 1 1 0 0 1 1 0 0 0 0 1 1
1-1-1 diagonal is one island ...where is another?? 1 1 0 0 1 1 0 0 0 0 1 1 these 1 will be considered one island of 2 island.?? On Tue, Jan 10, 2012 at 7:36 AM, Ashish Goel <ashg...@gmail.com> wrote: > row, col, diag all > > 1-1-1 is a single island :) > > > 1 1 0 0 > 1 1 0 0 > 0 0 1 1 > > this has only 2 islands > > > Best Regards > Ashish Goel > "Think positive and find fuel in failure" > +919985813081 > +919966006652 > > > > On Tue, Jan 10, 2012 at 7:29 AM, Ankur Garg <ankurga...@gmail.com> wrote: > >> Can you give an example >> >> Say matrix is >> >> 1 1 0 0 >> 1 1 0 0 >> 0 0 1 1 >> >> Has it got 3 islands i.e 1-1 be in same row or they can be column wise >> also i.e. 5 >> >> >> >> On Tue, Jan 10, 2012 at 7:09 AM, Ashish Goel <ashg...@gmail.com> wrote: >> >>> there is a matrix of 1 and 0 >>> 1 is a island and 0 is water >>> 1-1 together makes one island >>> calculate total no of islands >>> >>> Best Regards >>> >>> Ashish Goel >>> "Think positive and find fuel in failure" >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Algorithm Geeks" group. >>> To post to this group, send email to algogeeks@googlegroups.com. >>> To unsubscribe from this group, send email to >>> algogeeks+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.