Skip to content

Commit a4bf4ba

Browse files
authored
Update main.cpp
1 parent 6ce34f2 commit a4bf4ba

File tree

1 file changed

+1
-1
lines changed
  • 17 - Binary Tree Data Structure Problems/08 - Balanced Tree Check

1 file changed

+1
-1
lines changed

17 - Binary Tree Data Structure Problems/08 - Balanced Tree Check/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Solution{
77
if(left == -1) return -1;
88

99
int right = heights(root -> right);
10-
if(left == -1) return -1;
10+
if(right == -1) return -1;
1111

1212
if(abs(left - right) > 1) return -1;
1313

0 commit comments

Comments
 (0)