-
Notifications
You must be signed in to change notification settings - Fork 126
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
[정현준] 12주차 #566
[정현준] 12주차 #566
Conversation
} else if (p == null || q == null || p.`val` != q.`val`) { | ||
false | ||
} else { | ||
isSameTree(p.left, q.left) && isSameTree(p.right, q.right) |
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.
Kotlin은 Implicit return이 가능하군요 ㅎㅎ
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문과 try문을 식으로 작성할 수 있더라구요 ㅎㅎ
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.
아 return 문이었네요 이거 ㅋㅋㅋ 제가 잘못 봤습니다
이것도 또한 특이하네요
return result; | ||
} | ||
|
||
private int union(int[] relation, int[] edge) { |
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.
union find 풀이 잘 보았습니다 :)
helper 함수 깔끔하게 잘 나누어져 있어서 보기에도 편했습니다
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.