Repository navigation
[2024-07-09] sumin #141 - #146
Merged
Merged
Conversation
Closed
byeol3325
approved these changes
Jul 8, 2024
byeol3325
left a comment
Collaborator
There was a problem hiding this comment.
아 저는 나누기로 했었는데 곱하기로 해도 됐겠어요 ㅋㅋ
blaire-pi
approved these changes
Jul 9, 2024
blaire-pi
left a comment
Collaborator
There was a problem hiding this comment.
저랑 코드가 유사해서 이해하기 쉬웠습니다!
c0natus
approved these changes
Jul 9, 2024
c0natus
left a comment
Collaborator
There was a problem hiding this comment.
풀이가 유사해 이해하기 쉬웠습니다. 고생하셨습니다.
HeewonKwak
approved these changes
Jul 9, 2024
HeewonKwak
left a comment
Collaborator
There was a problem hiding this comment.
수민님 간단하게 구현하셔서 이해하기 쉬웠습니다
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.
PR Summary
<풀이 시간>
15분
<문제 회고>
각 숫자를 노드라고 생각한다면 시작점에서 도착점까지 가는 최단 거리를 구하는 문제로 BFS로 풀이가 가능하다.
실제로 각 숫자를 일직선에 있다고 생각하면 백준에 거의 유사한 문제인 숨바꼭질이 있다.
다이나믹 프로그래밍으로도 풀이가 가능하지만, 메모리나 실행시간 측면에서 BFS 풀이가 더 빠르다.