1 parent c965dcb commit 52d5a3fCopy full SHA for 52d5a3f
2 files changed
leetcode3/최민지/357.py
@@ -0,0 +1,6 @@
1
+class Solution:
2
+ def countNumbersWithUniqueDigits(self, n: int) -> int:
3
+ if n == 0:
4
+ return 1
5
+ else:
6
+ return (10 ** n) - (9 * n)
leetcode3/최민지/70.py
@@ -0,0 +1,13 @@
+ def climbStairs(self, n: int) -> int:
+ dp = [0] * (n+1)
+ dp[1] = 1
+ dp[2] = 2
+ for i in range(3, n+1):
7
+ dp[i] = dp[i-1] + dp[i-2]
8
+ return dp[n]
9
+
10
11
12
13
0 commit comments