Skip to content

Comments

3주차 1260 DFS와 BFS 김다운#50

Open
DAUN3046 wants to merge 2 commits intoManduTheCat:masterfrom
DAUN3046:1260kdu
Open

3주차 1260 DFS와 BFS 김다운#50
DAUN3046 wants to merge 2 commits intoManduTheCat:masterfrom
DAUN3046:1260kdu

Conversation

@DAUN3046
Copy link
Collaborator

@DAUN3046 DAUN3046 commented May 10, 2022

인접 리스트로 그래프를 짜서 dfs는 stack, bfs는 queue를 사용했다.

set 사용 시 리스트 정렬이 보장되지 않는다

그에 대한 반례는 코드 내에 주석으로 첨부했다. 이걸 몰라서 1시간 동안 눈 빠지게 반례를 찾아다녔다! 이제라도 알아서 다행이다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant