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