pick '0' and keep track if we have visited that '0' before a '0' will not surrender if it is on boundary
a '0' is ready to surrender if 1. it is surrounded by no '0' in all 4 directions (easy one) or 2. if it is surrounded by 1 to 4 '0' then it will surrender but we will ask each of the neighbouring '0' . so in this case traverse all neighbouring '0' and ask each one if it is ready to surrender. if all say yes then surrender them all . if even one of them says no, then whole group should not surrender -- 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 algogeeks+unsubscr...@googlegroups.com.