일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- DWG
- shiba
- t1
- Regular Expression
- 운영체제
- 컴퓨터의 구조
- 시바견
- 315. Count of Smaller Numbers After Self
- 30. Substring with Concatenation of All Words
- attribute
- Class
- Substring with Concatenation of All Words
- 109. Convert Sorted List to Binary Search Tree
- 715. Range Module
- 파이썬
- iterator
- Protocol
- 밴픽
- Convert Sorted List to Binary Search Tree
- concurrency
- kaggle
- 프로그래머스
- Python Implementation
- data science
- Python Code
- Python
- Generator
- LeetCode
- Decorator
- 43. Multiply Strings
Archives
- Today
- Total
목록Unique Paths II (1)
Scribbling
LeetCode: 63. Unique Paths II
class Solution: def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int: n, m = len(obstacleGrid[0]), len(obstacleGrid) board = [[0] * n for _ in range(m)] board[0][0] = 1 obstacles = [] for i in range(m): for j in range(n): if obstacleGrid[i][j] == 1: board[i][j] = 0 obstacles.append((i, j)) for j in range(1, n): if (0, j) in obstacles: continue board[0][j] = board[0][j-1] for ..
Computer Science/Coding Test
2021. 9. 24. 17:55