leetcode
463. Island Perimeter
Solution code
Time complexity: O(n m)
Space complexity: O(1)