Module ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Return CompareGtE Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return Num Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr CompareLt NameLoad Num CompareLt NameLoad Num CompareGt Call NameLoad BinOpSub NameLoad NameLoad Num body Return Num Return BinOpAdd Call NameLoad NameLoad NameLoad Num decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad Num Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Print NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Num Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Print NameLoad
N/A TreeNode N/A N/A __init__ N/A N/A self x N/A N/A N/A N/A self val x N/A N/A self left None N/A N/A self right None N/A N/A Solution N/A N/A isBalanced N/A N/A self root N/A N/A N/A N/A N/A N/A self getHeight root 0 N/A getHeight N/A N/A self root N/A N/A N/A N/A root None N/A N/A 0 N/A N/A left_height right_height N/A N/A N/A self getHeight N/A root left N/A N/A self getHeight N/A root right N/A N/A N/A left_height 0 N/A right_height 0 N/A N/A abs N/A left_height right_height 1 N/A N/A -1 N/A N/A N/A max left_height right_height 1 N/A N/A N/A N/A __name__ __main__ N/A N/A root N/A TreeNode 0 N/A N/A root left N/A TreeNode 1 N/A result N/A N/A N/A Solution isBalanced root N/A result N/A N/A N/A root left left N/A TreeNode 2 N/A result N/A N/A N/A Solution isBalanced root N/A result