Friday, November 9, 2012

Matrix of 0/1

Find all the islands and return them. An island is a sub-matrix of contiguous 1s.

1 comment:

  1. Looks like a Flood Fill algorithm, similar to this:

    https://github.com/davideanastasia/coding-exercises/blob/master/GrafixMask/GrafixMask.cpp

    ReplyDelete