Skip to content

Commit

Permalink
Merge pull request neetcode-gh#3169 from dvijay96/patch-1
Browse files Browse the repository at this point in the history
Update 0226-invert-binary-tree.java
  • Loading branch information
a93a authored Dec 21, 2023
2 parents 3635744 + 4fcfd0b commit 9485746
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion java/0226-invert-binary-tree.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ public TreeNode invertTree(TreeNode root) {
if (root == null) return null;
TreeNode node = new TreeNode(root.val);
node.right = invertTree(root.left);
node.val = root.val;
node.left = invertTree(root.right);
return node;
}
Expand Down

0 comments on commit 9485746

Please sign in to comment.