05 2015 档案

摘要:原题Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the dep... 阅读全文
posted @ 2015-05-14 15:25 小痴_r 阅读(141) 评论(0) 推荐(0)
摘要:1 #include 2 using namespace std; 3 4 struct TreeNode 5 { 6 char data; 7 int heigth; 8 TreeNode* rchild; 9 TreeNode* lchil... 阅读全文
posted @ 2015-05-12 20:17 小痴_r 阅读(172) 评论(0) 推荐(0)