摘要:
#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... 阅读全文