name it..... PRAVEEN RAJ DELHI COLLEGE OF ENGINEERING
On Wed, Jan 25, 2012 at 12:45 AM, atul anand <atul.87fri...@gmail.com>wrote: > @Praveen : i have doubt in your algo...it seem it may fail for some > cases... > > On Tue, Jan 24, 2012 at 5:59 PM, praveen raj <praveen0...@gmail.com>wrote: > >> Idea: >> 1)Take count =0; >> 2) make Outer loop ...and search for 1's ..... >> 3) Start ...searching for 1 consecutively... >> and make it ..0 untill all consecutive 1's becomes 0.. >> and then count++ >> 4) go to 1) untill all 1's finished.. >> >> count will give the total number of islands... >> >> >> PRAVEEN RAJ >> DELHI COLLEGE OF ENGINEERING >> >> -- >> 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.