Number of Island (Mutation)
Question
Given a matrix, an island is represent as '1' while the water is '0'. Find the longest perimeter of all the islands.
Solution
Follow up: Any other solution other than DFS?
Last updated