https://leetcode.com/problems/number-of-islands/ 2. 2021.12.29 시도 소요시간: 24분(10분 구상, 14분 코딩) class Solution { public int numIslands(char[][] grid) { if (grid.length == 0) { return 0; } int count = 0; for(int x=-1; x= input.length || y >= input[0].length) { return 0; } if (input[x][y] == '0') { return 0; } if (input[x][y] == '-') { return 0; } input[x][y] = '-'; int size = 1; size+=checkIsland(inp..