Easiest One line Python code


#1

import math
class Solution:
def uniquePaths(self, A, B):
return (math.factorial(A+B-2)/(math.factorial(B-1)*math.factorial(A-1)))