Function to check given sequence of root to leaf path exist in tree or not . index represents current element in sequence of rooth to leaf path
def existPath ( root , arr , n , index ) : NEW_LINE INDENT if not root : NEW_LINE INDENT return ( n == 0 ) NEW_LINE DEDENT return existPathUtil ( root , arr , n , 0 ) NEW_LINE DEDENT