🅰🅱
Size: a a a
🅰🅱
A
I
left_heightи
right_height) считается?
int findHeight(Node* root)
{
if (!root)
return 0;
else {
int left_height = findHeight(root->left);
int right_height = findHeight(root->right);
if (left_height >= right_height) return left_height + 1;
else return right_height + 1;
}
}
V
I
M
АП
АП
MI
MI
o
🅰🅱
MI
AP
class Object;
V
class Player {
public:
...
void Attack(Object &g);
}
void Player::Attack(Object &g) { g.SetProtect(g.GetProtect() - 20); }
MI
MI
MI
MI
ЮН