-
-
Notifications
You must be signed in to change notification settings - Fork 244
[sonjh1217] Week 12 solution #1936
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
base: main
Are you sure you want to change the base?
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.
코드리뷰가 늦어졌지만.... 연휴 기간에 수고 많으셨습니다.
궁금한 점들은 코멘트 남겼습니다. 감사합니다.
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.
2가지 풀이 덕분에 공부가 많이 됐습니다. 감사합니다.
class Solution { | ||
// O(n) time, O(h) space h = 트리의 높이. 최악: n, 평균: log n | ||
func isSameTree(_ p: TreeNode?, _ q: TreeNode?) -> Bool { | ||
switch (p, q) { |
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.
swift에서는 switch문에 어떤 값을 넣을 수 있는건가요? JavaScript에서는 하나의 변수 또는 표현식을 사용할 수 있어서 궁금합니다.
답안 제출 문제
작성자 체크 리스트
In Review
로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!