Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
📘 풀이한 문제
⭐ 문제에서 주로 사용한 알고리즘
📜 대략적인 코드 설명
섬 번호는 2중 for문을 돌려가며 방문하지 않은 육지 발견 시 연결된 육지는 같은 번호로
2중 for문후 (0,0)에서 바다를 따라 이동 (4방향 뿐만 아니라 대각선도 가능,
대각선으로 이동 시, 맞물려 있는 섬들의 번호가 다를 때만 이동)
이동하지 못하는 섬은 위험한 섬. 이동 가능하면 안전한 섬