Update LevelOrderTraversal.java
This commit is contained in:
parent
28deddd5d7
commit
2dc86b6a04
@ -38,7 +38,7 @@ public class LevelOrderTraversal
|
||||
else
|
||||
{
|
||||
/**
|
||||
* return the larger one;
|
||||
* Return the height of larger subtree
|
||||
*/
|
||||
return Math.max(height(root.left),height(root.right)) + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user