removes debug prints

This commit is contained in:
Emanuel Rodriguez 2023-07-18 23:10:03 -07:00
parent 213242a4eb
commit 9b53857a64
1 changed files with 0 additions and 5 deletions

View File

@ -146,20 +146,15 @@ bool is_leaf(TreeNode* a) {
// determine if two trees are equal
bool tree_equal(TreeNode* root_a, TreeNode* root_b) {
printf("comparing the values: %d ---- %d\n", root_a->value, root_b->value);
if (root_a->value != root_b->value) {
printf("a value difference found....returning FALSE\n");
return (false);
}
if (is_leaf(root_a) && is_leaf(root_b)) {
printf("a terminal leaf\n");
return (true);
}
if (is_leaf(root_a) || is_leaf(root_b)) {
printf("a strucutre difference\n");
return (false);
}