摘要:
static int tree_height(const Node* root, int& max_distance){ const int left_height = root->left ? tree_height(root->left, max_distance) + 1 : 0; const int right_height = root->right ? tree_height(root->right, max_distance) + 1 : 0; const int distance = left_height + right_height; if 阅读全文
posted @ 2013-09-17 23:07
一只会思考的猪
阅读(185)
评论(0)
推荐(0)
浙公网安备 33010602011771号