-
-
Notifications
You must be signed in to change notification settings - Fork 250
[njngwn] Week 14 Solutions #1950
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
Conversation
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.
이번 주도 수고하셨습니다. 궁금한 점은 코멘트 남겼습니다.
| if (root == null) return results; | ||
|
|
||
| Queue<TreeNode> levelQueue = new LinkedList<>(); // use queue considering FIFO | ||
| levelQueue.offer(root); |
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.
Queue라는 컬렉션(? 자바에서는 컬렉션이라는 명칭을 사용했던거 같아 사용해봅니다)에서 데이터를 넣을 때, enqueue가 아닌 offer 메서드를 사용하는군요. 아니면 new LinkedList() 를 사용해서 그런건가요?
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.
자바에는 Queue가 LinkedList로 구현되어 있는걸로 알고있구요. offer 메소드 사용합니다!
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.
bit operations 를 사용해서 풀이해 보시면 어떨까요!
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.
14주차 문제 풀이 고생하셨습니다!
지난 4달 가까이 현생과 함께 물제 풀이 진행 하시느라 많이 고생하셨을텐데 제가 드린 피드백들은 많이 부족하지만 앞으로 개발자로서 조금이라도 도움이 되셨으면 좋겠습니다.
마지막 15주차 문제들 난이도가 조금 더 올라갈거에요.
힘드시겠지만 마지막까지 힘내서 완주 하시길 바랄께요.
15주차 문제 풀이 파이팅입니다!
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!