[정민서-15주차 알고리즘 스터디]#26
Open
minseojeong1012 wants to merge 50 commits intoSSAFY13th-algorithm:minseojeong/week15from
Open
[정민서-15주차 알고리즘 스터디]#26minseojeong1012 wants to merge 50 commits intoSSAFY13th-algorithm:minseojeong/week15from
minseojeong1012 wants to merge 50 commits intoSSAFY13th-algorithm:minseojeong/week15from
Conversation
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.
🚀 싸피 15반 알고리즘 스터디 15주차 [정민서]
📌 문제 풀이 개요
✅ 문제 해결 여부
💡 풀이 방법
문제 1: 점프왕 쩰리 (Small)
문제 난이도
실버 4
문제 유형
구현
접근 방식 및 풀이
배열에서 -1을 만나면 도달 가능한 것이므로 즉시 탐색을 종료하는 방식으로 dfs 진행했습니다
문제 2: 빗물
문제 유형
구현
문제 난이도
골드 5
접근 방식 및 풀이
현재 위치에서 왼쪽과 오른쪽의 최대 높이를 각각 구합니다.
두 최대 높이 중 작은 값을 찾고, 만약 작은 값이 현재 위치의 높이보다 크다면, 이 차이만큼 물이 고입니다.
모든 위치를 탐색한 뒤, 고인 물의 총합을 출력하는 방식으로 진행했습니다