Update 'cv8/program.c'

This commit is contained in:
Anzhelika Nikolaieva 2023-11-24 20:25:07 +00:00
parent 2ce13354b8
commit 35f64d5ec1

View File

@ -89,7 +89,7 @@ int count_no_leaves(struct tree* node) {
return 0;
}
}
return 1 + count_n_leaves(node->left) + count_n_leaves(node->right);
return 1 + count_no_leaves(node->left) + count_no_leaves(node->right);
}
void knowledge_system(struct tree* node) {