Commit 3d811c6

mo khan <mo.khan@gmail.com>
2020-08-10 00:23:40
Remove curly braces
1 parent 082e48d
Changed files (1)
src
02
src/02/05/btree.c
@@ -35,12 +35,10 @@ void btree_pre_order_number(BTree *root) {
     root = stack_pop(stack);
     original->pre_order[i++] = root->data;
 
-    if (root->right != NULL) {
+    if (root->right != NULL)
       stack_push(stack, root->right);
-    }
-    if (root->left != NULL) {
+    if (root->left != NULL)
       stack_push(stack, root->left);
-    }
   }
 }