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