Skip to content

Conversation

@0224LJH
Copy link
Contributor

@0224LJH 0224LJH commented Oct 4, 2025

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/258711

🧭 풀이 시간

42분

👀 체감 난이도

✏️ 문제 설명

문제가 많이 길어서, 링크 참고 바람

🔍 풀이 방법

우선 잘 생각해보면, 새롭게 추가하는 노드는 자신으로 향하는 노드가 없다. 물론 이건 막대그래프의 시작점도 동일하지만, 막대그래프의 시작점은 항상 향하는 노드가 한개라는 차이가 있다.

이를 통해, 새롭게 추가된 노드를 알아내면된다.

이후 향하는 노드, 오는 노드의 개수에 따라 각각의 그래프가 셋 중 무엇인지 판단하면 된다.

⏳ 회고

스트릭 깨진김에 프로그래머스도 좀 풀어봐야겠다.

@0224LJH 0224LJH added the success 👍 해설을 보지 않고 풀었을 때 label Oct 4, 2025
@ShinHeeEul ShinHeeEul merged commit f6a9cb9 into main Oct 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants