leetcode+求岛的周长

点击打开链接
class Solution {
public:
    int islandPerimeter(vector>& grid) {
        int m= grid.size(), n = grid[0].size();
        int sum = 0;
        for(int i=0 ; i

你可能感兴趣的:(Leetcode)