-
Notifications
You must be signed in to change notification settings - Fork 4
[7주차] 이예진 #96
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
[7주차] 이예진 #96
Conversation
BOJ/5001-10000번/YJ_5021.java
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.
getOrDefault
는 null 값 일 때, 두번째 인자를 반환하는 건가요?! if null로 확인하지 않아도 돼서 좋은것 같네요!!!
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.
@KodaHye 맞아요! getOrDefault()
유용하게 많이 사용되더라구요
BOJ/5001-10000번/YJ_5021.java
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.
위상정렬은 indegree라는 진입차수 배열과 큐를 사용해야 되는데, 예진님은 위상정렬은 사용하지 않고 DFS로만 풀이했다고 해야될 것 같습니다!
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.
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.
그래프의 구조 자체는 비순환 유향 그래프인 것이고, 문제 풀이 유형으로 DFS나 위상정렬 방식으로 풀이할 수 있는 것으로 이해하면 될 것 같습니다!
No description provided.