2012年12月17日
摘要: #include <iostream>#include <vector>using namespace std;struct BTreeNode{ int value; BTreeNode *lchild; BTreeNode *rchild;};bool IsBalanced(BTreeNode *pRoot, int &height){ if (!pRoot){ height = 0; return true; } int leftHeight = 0; int rightHeight = 0; bool left... 阅读全文
posted @ 2012-12-17 14:11 kkmm 阅读(349) 评论(0) 推荐(0) 编辑