일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 43. Multiply Strings
- Protocol
- shiba
- Class
- 109. Convert Sorted List to Binary Search Tree
- 파이썬
- Regular Expression
- 밴픽
- 운영체제
- Convert Sorted List to Binary Search Tree
- attribute
- Python Code
- Python
- DWG
- 프로그래머스
- kaggle
- 30. Substring with Concatenation of All Words
- 315. Count of Smaller Numbers After Self
- concurrency
- Generator
- t1
- Substring with Concatenation of All Words
- 컴퓨터의 구조
- Decorator
- data science
- iterator
- 시바견
- Python Implementation
- 715. Range Module
- LeetCode
Archives
- Today
- Total
목록Longest Increasing Path in a Matrix (1)
Scribbling
LeetCode: 329. Longest Increasing Path in a Matrix
Tip of the day: A problem starts with "Longest" usually has something to do with DP. Though the difficulty is hard, it's not a difficult one. Seeing the below code will be enough for sure, so I won't give any explanation about it. class Solution: def longestIncreasingPath(self, matrix: List[List[int]]) -> int: m, n = len(matrix), len(matrix[0]) self.matrix = matrix self.visited = [[False] * n fo..
Computer Science/Coding Test
2022. 1. 11. 17:26