We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a812314 commit ca162fdCopy full SHA for ca162fd
unique-paths/samthekorean.py
@@ -0,0 +1,5 @@
1
+# TC : O(n)
2
+# SC : O(1)
3
+class Solution:
4
+ def uniquePaths(self, m: int, n: int) -> int:
5
+ return math.comb(m + n - 2, n - 1)
0 commit comments