Merged
Conversation
zaqquum
approved these changes
Aug 17, 2025
Collaborator
There was a problem hiding this comment.
저는 bfs로 풀었는데 백트레킹을 사용한 dfs로 풀이한 점이 인상적이었습니다.
🔥2025-08 챌린지 진행 상황👉 그래프
👉 구현
|
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.
🌱WIL
🚀주간 목표 문제 수: 3개
백준 #2644. 촌수계산: 그래프 / 실버2
정리한 링크: (바로가기)
🚩플로우 (선택)
n, 촌수를 계산할 두 사람의 번호a와b를 입력받고, 부모-자식 관계의 개수m줄만큼x,y를 입력받아graph를 연결한다.visited리스트를 초기화한다.chonsu는-1로 설정하여 촌수를 찾지 못한 경우를 대비한다.a로 지정하고 탐색을 시작한다.level+1을 넘겨줘서 촌수를 계산한다.b라면,chonsu변수에level을 업데이트하고 재귀 호출을 종료한다.chonsu를 출력한다.🚩제출한 코드
💡TIL
백준 #5014. 스타트링크: 그래프 / 실버1
정리한 링크: (바로가기)
🚩플로우 (선택)
F, S, G, U, D를 받는다.S == G→ 시작과 동시에 도착한 경우 → 0을 반환한다.(현재 층, 버튼 클릭 횟수)를 저장한다.G층을 만나면 버튼 클릭 횟수를 반환한다."use the stairs", 아니면 횟수를 출력한다.🚩제출한 코드
💡TIL
백준 #1158. 요세푸스 문제: 구현 / 실버4
정리한 링크: (바로가기)
🚩플로우 (선택)
deque에 1부터 N까지 사람들을 저장한다."<3, 6, 2, ...>"형식으로 출력한다.🚩제출한 코드
💡TIL
collections.deque에서 rotate() 메서드가 있다는 것을 알게 되었다. rotate(n) 메서드는 deque 내의 요소들을 n만큼 이동시켜주는 연산이다.,를 쓰면 스페이스바가 추가된 채로 되어서 end=””를 써서 출력했는데 “+” 로할 수 있다는 것도 알게 되었다.백준 #28066. 타노스는 요세푸스가 밉다: 구현 / 실버2
정리한 링크: (바로가기)
🚩플로우 (선택)
deque에 1번부터 N번까지 청설모를 저장한다.popleft()⇢ 첫 번째 청설모를 꺼내고append()⇢ 맨 뒤로 보낸다.remove()함수로 K-1마리 제거한다.🚩제출한 코드
💡TIL