traverse right
lengthUtil ( root . right , maximum , minimum , curr + 1 ) NEW_LINE def getLength ( root ) : NEW_LINE maximum = [ 0 ] NEW_LINE minimum = [ 0 ] NEW_LINE lengthUtil ( root , maximum , minimum , 0 ) NEW_LINE