일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Generator
- Regular Expression
- concurrency
- 프로그래머스
- 109. Convert Sorted List to Binary Search Tree
- 밴픽
- 30. Substring with Concatenation of All Words
- LeetCode
- 시바견
- Python Code
- data science
- Class
- Convert Sorted List to Binary Search Tree
- attribute
- Python
- Decorator
- Substring with Concatenation of All Words
- 컴퓨터의 구조
- kaggle
- 운영체제
- Python Implementation
- 315. Count of Smaller Numbers After Self
- Protocol
- 파이썬
- 715. Range Module
- t1
- iterator
- shiba
- 43. Multiply Strings
Archives
- Today
- Total
목록Maximal Rectangle (1)
Scribbling
LeetCode: 85. Maximal Rectangle
어케풀었누... 1. 내 방법 A. 각 점으로부터 오른쪽으로 연결된 네모의 개수를 저장한다. 1 0 1 0 0 1 0 3 2 1 5 4 3 2 1 1 0 0 1 0 B. 모든 열에 대해서 최대 직사각형 넓이를 계산한다. class Solution: def maximalRectangle(self, matrix: List[List[str]]) -> int: if not matrix: return 0 n, m = len(matrix), len(matrix[0]) dp = [[0] * m for _ in range(n+1)] # table for i in range(n): j = m - 1 count = 1 while j >= 0: if matrix[i][j] == '0': dp[i][j] = 0 count =..
Computer Science/Coding Test
2021. 10. 4. 13:52