Merged
Conversation
YoonYn9915
approved these changes
Aug 3, 2025
Member
YoonYn9915
left a comment
There was a problem hiding this comment.
안전구역문제 dfs로 푸셨군요 로직이 크게 어려운 문제는 아니라서 저도 dfs로 다시 풀어봐도 될 거 같아요!
저도 지난 한 주 계속 쉬었는데... 프로젝트도 끝났으니 이젠 열심히 해야 할 거 같아요
🔥2025-08 챌린지 진행 상황👉 그리디
👉 구현
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🌱WIL
🚀주간 목표 문제 수: 3개
프로그래머스 #81302. 거리두기 확인하기 : 그래프 / Level 2
정리한 링크: (바로가기)
🚩플로우 (선택)
P가 있는 위치에서만 탐색을 시작한다.P에서 12개의 방향(맨해튼 거리 ≤ 2)을 조사한다:P가 있다면 거리두기 위반인지 판단한다.0을 반환1반환🚩제출한 코드
💡TIL
백준 #2468. 안전 영역: 그래프 / 실버1
정리한 링크: (바로가기)
🚩플로우 (선택)
max_height를 구한다.height를0부터max_height까지 1씩 증가시키며 다음을 반복한다:visited를 초기화한다.i, j)를 순회하면서:height보다 값이 큰 영역(visited[i][j] == False이고 map[i][j] > height)이면 DFS를 수행한다.count += 1해준다.answer의 값을 갱신한다. (answer = max(answer, count))🚩제출한 코드
💡TIL
sys.setrecursionlimit(100000)를 꼭 추가해주어야 한다.