https://leetcode.com/problems/unique-paths/
不知道说什么
小学排列组合的奥术题
一瞬间不知道怎么计算机解了
不知道脑子里的排列组合应该算思考还是算作弊
import math
class Solution:
# @param m, an integer
# @param n, an integer
# @return an integer
def uniquePaths(self, m, n):
a=math.factorial(m+n-2)
b=math.factorial(m-1)
c=math.factorial(n-1)
return a/(b*c)