Given a matrix, an island is represent as '1' while the water is '0'. Find the longest perimeter of all the islands.
Last updated 7 years ago