Returns minimum distance beween a and b . This function assumes that a and b exist in BST .
def distanceBetween2 ( root , a , b ) : NEW_LINE INDENT if root == None : NEW_LINE INDENT return 0 NEW_LINE DEDENT DEDENT