You are viewing a single comment's thread. Return to all comments →
def solve(n, m): # Write your code here return math.comb(m+n-1,m-1)%(10**9+7)
Sherlock and Permutations
You are viewing a single comment's thread. Return to all comments →