일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 운영체제
- 밴픽
- 시바견
- Python Code
- 315. Count of Smaller Numbers After Self
- Python
- concurrency
- iterator
- Regular Expression
- attribute
- DWG
- LeetCode
- t1
- shiba
- 파이썬
- 715. Range Module
- Substring with Concatenation of All Words
- Protocol
- 109. Convert Sorted List to Binary Search Tree
- Class
- Python Implementation
- 컴퓨터의 구조
- 43. Multiply Strings
- 프로그래머스
- kaggle
- 30. Substring with Concatenation of All Words
- Convert Sorted List to Binary Search Tree
- Decorator
- data science
- Generator
Archives
- Today
- Total
목록등굣길 (1)
Scribbling
프로그래머스: 등굣길
def solution(m, n, puddles): dp = [[0] * m for _ in range(n)] dp[0][0] = 1 for i in range(1, m): if [i+1, 1] in puddles: continue dp[0][i] = dp[0][i-1] for i in range(1, n): if [1, i+1] in puddles: continue dp[i][0] = dp[i-1][0] for i in range(1, n): for j in range(1, m): if [j+1, i+1] in puddles: continue dp[i][j] = dp[i-1][j] + dp[i][j-1] return dp[n-1][m-1] % 1000000007
Computer Science/Coding Test
2021. 10. 26. 21:19