We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
TLE'd on this but i was thinking somewhere along the lines of the followng:
nc = int(math.factorial(m)//(math.factorial(r)*math.factorial(m-r))) where r in range(n)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Matrix Tracing
You are viewing a single comment's thread. Return to all comments →
TLE'd on this but i was thinking somewhere along the lines of the followng:
nc = int(math.factorial(m)//(math.factorial(r)*math.factorial(m-r)))
where r in range(n)