原文:[LeetCode] 617. Merge Two Binary Trees 合并二叉树

Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. You need to merge them into a new binary tree ...

2017-06-21 12:18 0 9565 推荐指数:

查看详情

[LeetCode] Print Binary Tree 打印二叉树

Print a binary tree in an m*n 2D string array following these rules: The row number m should be equal to the height of the given binary tree. ...

Thu Sep 07 20:37:00 CST 2017 0 4347
[LeetCode] Binary Tree Tilt 二叉树的坡度

Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the sum of all left ...

Sun Apr 30 07:49:00 CST 2017 0 4412
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM