Merged
Conversation
Moonjonghoo
approved these changes
Feb 25, 2025
Collaborator
Moonjonghoo
left a comment
There was a problem hiding this comment.
전체적으로 탐색과 배열을 잘 활용해서 풀어주신거같습니다!
고생하셨습니다.
bona1122
approved these changes
Feb 26, 2025
Collaborator
bona1122
left a comment
There was a problem hiding this comment.
코드 잘 보았습니다. dfs,bfs,다익스트라 모두 잘 이용하신 것 같습니다! 한주동안 수고하셨습니다😊
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.
📌 푼 문제
📝 간단한 풀이 과정
Find the Town Judge
각 사람의 신뢰 점수를 배열에 집계한 후, 배열을 순회하며 신뢰 점수가 n - 1인 사람을 찾아 반환하는 방식으로 해결했습니다.
Find if Path Exists in Graph
edges를 인접 리스트로 변환한 후, BFS 큐를 활용해 시작 노드에서 목표 노드까지 경로가 존재하는지를 탐색하는 방식으로 해결했습니다.
게임 맵 최단거리
미로 지도를 2차원 배열로 해석한 후, 이동 방향 배열을 이용해 BFS로 최단 경로를 탐색하고 도착 지점까지의 이동 횟수를 계산하는 방식으로 해결했습니다.
타겟 넘버
숫자 배열을 DFS 기법으로 재귀 탐색한 후, 모든 경우의 수 중 목표 숫자에 도달하는 경우를 누적하여 카운트하는 방식으로 해결했습니다.
배달
도로 정보를 그래프로 구성한 후, 다익스트라 알고리즘을 활용해 시작 마을에서 각 마을까지의 최단 이동 시간을 계산하고, 제한 시간 내 도달 가능한 마을의 수를 집계하는 방식으로 해결했습니다.