JAVA_Same Tree_LeetCode 100


JAVA_Same Tree_LeetCode 100

JAVA_Same Tree_LeetCode 100 Same Tree 풀이 class Solution { public boolean isSameTree(TreeNode p, TreeNode q) { boolean res = (p == null || q == null) ? p == q : p.val == q.val && isSameTree(p.left,q.left) && isSameTree(p.right,q.right); return res; } } * 출처 Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com...


#JAVA #JAVA_LeetCode100 #JAVA_SameTree #JAVA_SameTree_LeetCode100 #SameTree_LeetCode100

원문링크 : JAVA_Same Tree_LeetCode 100