Skip to content

Commit 58a1007

Browse files
committed
#229 Subtree of Another Tree (PR 머지 실수로 인해 다시 커밋)
1 parent f69029f commit 58a1007

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subtree-of-another-tree/forest000014.java

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ private boolean dfs(TreeNode root, TreeNode subRoot) {
4141
private boolean compareTrees(TreeNode root1, TreeNode root2) {
4242
if (root1 == null && root2 == null) return true;
4343
if (root1 == null || root2 == null) return false;
44+
4445
if (root1.val != root2.val) return false;
4546

4647
return compareTrees(root1.left, root2.left) && compareTrees(root1.right, root2.right);

0 commit comments

Comments
 (0)