re: Amazon's Interview Question: Count Island VIEW POST

VIEW FULL DISCUSSION
 

I think you could also solve it using Flood Fill
Algorithm, which is similar to your approach. Thank you for sharing!

 

I have no idea what Flood Fill algorithm is. Will take a look at it. Thanks

code of conduct - report abuse