Count of Unique Direct Path Between N Points On a Plane | Function to count the total number of direct paths ; Driver Code
def countDirectPath ( N ) : NEW_LINE INDENT return N + ( N * ( N - 3 ) ) // 2 NEW_LINE DEDENT if __name__ == " _ _ main _ _ " : NEW_LINE INDENT N = 5 NEW_LINE print ( countDirectPath ( N ) ) NEW_LINE DEDENT