Minjeong / 7월 5주차 / 2문제 #241
Merged
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)를 꼭 추가해주어야 한다.