[강신지-12주차 알고리즘 스터디] #20
Open
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반 알고리즘 스터디 12주차 [강신지]
📌 문제 풀이 개요
✅ 문제 해결 여부
💡 풀이 방법
문제 1: 파도반수열
문제 난이도
실버 3
문제 유형
DP
접근 방식 및 풀이
규칙을 찾아 DP로 해결하였습니다.
문제 2: 아기 상어
문제 난이도
골드 3
문제 유형
구현
접근 방식 및 풀이
아기 상어가 물고기를 잡아먹을 수 있는 시간을 구하는 문제였습니다.
주어진 조건에 따라 타겟 물고기를 BFS로 구하며 더 이상 먹을 수 있는 물고기가 없을 때까지 시간을 계산했습니다.
문제 3: 아기 상어 2
문제 난이도
실버 2
문제 유형
구현
접근 방식 및 풀이
아기 상어와의 거리(안전 거리)의 최댓값을 구하는 문제였습니다.
BFS로 해결했습니다.
문제 4: 동전 1
문제 난이도
골드 4
문제 유형
DP
접근 방식 및 풀이
n가지 동전을 사용해 가치의 합이 k원이 되도록 하는 경우의 수를 구하는 문제였습니다.
1차원 dp 배열을 사용해 해결하였습니다.
문제 5 : 서강 그라운드
문제 난이도
골드 4
문제 유형
플로이드 워셜
접근 방식 및 풀이
양방향 그래프와 수색 가능 범위가 주어지고 얻을 수 있는 아이템의 최대 개수를 구하는 문제였습니다.
모든 정점 쌍에 대해 중간 정점을 하나씩 고려하며 최단 거리를 갱신하는 플로이드 워셜 알고리즘을 사용하였습니다.