{*1*,* 1*, 0, 0, 0},
                        {0, *1*, 0, 0, *1*},
                        {*1*, 0, 0, *1*, *1*},
                        {0, 0, 0, 0, 0},
                        {*1*, 0, *1*, 0, *1*}


Can anybody eplain how there are 5 islands in above matrix..thnx in advance

source:-http://www.geeksforgeeks.org/find-number-of-islands/

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to