Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 872d26c

Browse files
authored
Update Solution.java
1 parent c21c36a commit 872d26c

File tree

1 file changed

+0
-2
lines changed
  • src/main/java/g0601_0700/s0617_merge_two_binary_trees

1 file changed

+0
-2
lines changed

‎src/main/java/g0601_0700/s0617_merge_two_binary_trees/Solution.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ public TreeNode mergeTrees(TreeNode root1, TreeNode root2) {
2424
if (root1 == null) {
2525
return root2;
2626
}
27-
2827
if (root2 == null) {
2928
return root1;
3029
}
31-
3230
return new TreeNode(
3331
root1.val + root2.val,
3432
mergeTrees(root1.left, root2.left),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /