GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Leetcode-Java/leetcode/solution/src/MergeTwoBinaryTrees.java at master · Tulpen/Leetcode-Java Expand file tree/ Copy pathMergeTwoBinaryTrees.javaMore file actions 13 lines (12 loc) · 341 Bytes / Copy pathMergeTwoBinaryTrees.javaFile metadata and controls13 lines (12 loc) · 341 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 public class MergeTwoBinaryTrees { public TreeNode mergeTrees(TreeNode t1, TreeNode t2) { if (t1 == null) return t2; if (t2 == null) return t1; t1.val += t2.val; t1.left = mergeTrees(t1.left, t2.left); t1.right = mergeTrees(t1.right, t2.right); return t1; } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |