Open
Conversation
muncool39
approved these changes
Feb 13, 2026
Member
muncool39
left a comment
There was a problem hiding this comment.
스터디 수고하셨습니다! 설명을 잘 해주셔서 이해가 쏙쏙 됐습니다 짱!! 👍
즐거운 연휴 보내세요! 😃
| } | ||
| } | ||
| } | ||
| depth += 1; |
Member
There was a problem hiding this comment.
깊이 정보를 큐에 저장하지 않고 구한 점이 인상깊었습니다! 👍
Comment on lines
+34
to
+40
| if(hm.containsKey(s)) { | ||
| hm.get(s).add(score); | ||
| } else { | ||
| ArrayList<Integer> list = new ArrayList<>(); | ||
| list.add(score); | ||
| hm.put(s, list); | ||
| } |
Member
There was a problem hiding this comment.
해당 부분을 map의 computeIfAbsent 를 사용해 간단하게 줄일 수 있을 것 같아요!
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.
🔥 해결한 문제
백준
프로그래머스
🚒 해결하지 못한 문제
원인 분석
개선 계획
💡 새롭게 알게된 점
🚀 보완할 점