int function ( TreeImpl . Node arg0 ) { if ( arg0 == null ) { return 0 ; } int loc0 = getHeight2 ( arg0 . getLeft ( ) ) ; int loc1 = getHeight2 ( arg0 . getRight ( ) ) ; return Math . max ( loc0 , loc1 ) + 1 ; }
method 2 to get height of tree concode_field_sep PlaceHolder placeHolder concode_field_sep int getHeight concode_elem_sep boolean isBalanced2 concode_elem_sep int getHeightHelper concode_elem_sep void main concode_elem_sep int checkHeight concode_elem_sep boolean isBalanced