diff --git a/Leetcode -61 b/Leetcode -61 new file mode 100644 index 0000000..1de5ad2 --- /dev/null +++ b/Leetcode -61 @@ -0,0 +1,10 @@ +class Solution: + def uniquePaths(self, m: int, n: int) -> int: + if(m==1 or n==1): + return 1 + count=[1 for i in range(m)] + + for i in range(n-1): + for j in range(1,m): + count[j] += count[j-1] + return count[m-1]