일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Regular Expression
- 109. Convert Sorted List to Binary Search Tree
- 30. Substring with Concatenation of All Words
- Python Code
- attribute
- 시바견
- 밴픽
- t1
- Class
- LeetCode
- 프로그래머스
- 715. Range Module
- data science
- 파이썬
- Decorator
- iterator
- 315. Count of Smaller Numbers After Self
- 43. Multiply Strings
- shiba
- kaggle
- DWG
- Convert Sorted List to Binary Search Tree
- 운영체제
- concurrency
- Protocol
- Generator
- Python Implementation
- Substring with Concatenation of All Words
- 컴퓨터의 구조
- Python
Archives
- Today
- Total
목록73. Set Matrix Zeroes (1)
Scribbling
LeetCode: 73. Set Matrix Zeroes
class Solution: def setZeroes(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """ m, n = len(matrix), len(matrix[0]) for y in range(m): for x in range(n): if matrix[y][x] == 0: self.inspect_row(matrix, y, x) self.inspect_column(matrix, y, x) elif matrix[y][x] == 'row inspected zero': self.inspect_column(matrix, y, x) elif matrix[y][x] == 'colum..
Computer Science/Coding Test
2021. 9. 28. 20:28