일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 43. Multiply Strings
- Python Code
- concurrency
- t1
- Protocol
- Convert Sorted List to Binary Search Tree
- data science
- Substring with Concatenation of All Words
- 운영체제
- Class
- 프로그래머스
- 시바견
- attribute
- kaggle
- Decorator
- 715. Range Module
- Python Implementation
- 밴픽
- 30. Substring with Concatenation of All Words
- Generator
- DWG
- 315. Count of Smaller Numbers After Self
- 컴퓨터의 구조
- 파이썬
- Regular Expression
- shiba
- 109. Convert Sorted List to Binary Search Tree
- LeetCode
- iterator
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