Update 'cv8/program.c'
This commit is contained in:
parent
35f64d5ec1
commit
fab60f2ad0
@ -88,7 +88,6 @@ int count_no_leaves(struct tree* node) {
|
||||
if (node == NULL || (node->left == NULL && node->right == NULL)) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 1 + count_no_leaves(node->left) + count_no_leaves(node->right);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user