-
Notifications
You must be signed in to change notification settings - Fork 5
Hongjoo/6월 3주차/ 7문제 #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hongjoo/6월 3주차/ 7문제 #225
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hongjoo/백준/숨박꼭질2.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지난 주 풀이도 함께 올려주셨네요! 👍
지난 주 발제자료로 다양한 풀이를 추가해두었는데 참고해주세요!
https://github.com/AlgorithmStudy-Allumbus/codingtest_algorithm_study/blob/main/_WeeklyChallenges/W26-%5BGraph-BFS%5D/Study_BOJ_12851_%EC%88%A8%EB%B0%94%EA%BC%AD%EC%A7%882.py
Hongjoo/백준/숨박꼭질.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 여기서 왜 2중 for문을 쓰셨는지 알 수 있을까요???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YoonYn9915
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전반적으로 발제문제와 과제문제에서 아이디어를 잘 떠올리셨고 로직에 따라 명확한 코드를 작성해주신 것 같습니다!
한 주 수고하셨습니다~
Hongjoo/백준/숨바꼭질3.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
큐에 좌표만 넣고 시간은 visited 배열에 따로 관리하면서 깔끔하고 가독성 좋은 코드가 된것 같습니다. 👍
Hongjoo/백준/숨바꼭질3.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 이번 문제에 이 순간이동 관련한 아이디어를 떠올리기가 힘들었는데... 잘 생각해서 정리해주신것 같아요!
🔥2025-06 챌린지 진행 상황👉 그래프
👉 구현
|

🌱WIL
🚀주간 목표 문제 수: 4개
백준 #14226. 이모티콘: 그래프/ 골드4
정리한 링크: (바로가기)
🚩플로우 (선택)
🚩제출한 코드
백준 #13549. 숨바꼭질3: 그래프/ 골드5
정리한 링크: (바로가기)
🚩플로우 (선택)
입력 변수 입력하기
BFS 탐색 시 순간이동을 우선순위를 둠
→ for문 탐색시 , 2*n >> n-1, n+1 순으로 탐색
배열 visited에 도착 시간 업로드
🚩제출한 코드
백준 #12851. 숨바꼭질2: 그래프/ 골드4
정리한 링크: (바로가기)
🚩플로우 (선택)
🚩제출한 코드
백준 #1697. 숨바꼭질: 그래프/ 실버1
정리한 링크: (바로가기)
🚩플로우 (선택)
🚩제출한 코드
프로그래머스 #17680. 캐시: 구현 / lv2
정리한 링크: (바로가기)
🚩플로우 (선택)
🚩제출한 코드
##백준 #13913. 숨바꼭질4: 그래프 / 골드4
정리한 링크: (바로가기)
🚩플로우 (선택)
[1] BFS을 활용해 최단 시간 찾기
[2] 최단 시간을 가진 “경로” 출력하기
visited 내의 출발지 cx 을 통해 최종 도착지 K 로 부터 최초 출발지 N 까지의 경로를 역추적함
ex) 5 ,17
visited[17] = [ 4, 18]
visited[18] = [3, 9]
visited[9] = [2 , 10]
visited[10] = [1, 5 ]
visited[5] = [0,5]
🚩제출한 코드
프로그래머스 #12911. 다음 큰 숫자: 구현 / lv2
정리한 링크: (바로가기)
🚩플로우 (선택)
🚩제출한 코드