Flood the islands to get rejected by Amazon — This is going to be a pretty quick post — not because the problem is easy, per se, but because it’s really not that different from Flood Fill. In fact, you can think of the core algorithm as a flood fill problem. Traverse every square in the matrix, flood fill…