原文:[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