일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Substring with Concatenation of All Words
- 315. Count of Smaller Numbers After Self
- Regular Expression
- 109. Convert Sorted List to Binary Search Tree
- 715. Range Module
- Class
- LeetCode
- Python Code
- 컴퓨터의 구조
- Protocol
- Convert Sorted List to Binary Search Tree
- Decorator
- 시바견
- Generator
- concurrency
- data science
- shiba
- 파이썬
- 43. Multiply Strings
- 운영체제
- attribute
- Python Implementation
- kaggle
- 30. Substring with Concatenation of All Words
- 밴픽
- iterator
- t1
- 프로그래머스
- DWG
Archives
- Today
- Total
목록1329. Sort the Matrix Diagonally (1)
Scribbling
LeetCode: 1329. Sort the Matrix Diagonally
class Solution: def diagonalSort(self, mat: List[List[int]]) -> List[List[int]]: m, n = len(mat), len(mat[0]) starting_points = [(0, i) for i in range(n)] + [(i, 0) for i in range(1, m)] for starting_point in starting_points: array = [] y, x = starting_point while y
Computer Science/Coding Test
2021. 11. 24. 14:45