일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Convert Sorted List to Binary Search Tree
- DWG
- iterator
- shiba
- Substring with Concatenation of All Words
- data science
- Python Implementation
- t1
- 파이썬
- Decorator
- concurrency
- Python Code
- Python
- Class
- 프로그래머스
- 밴픽
- LeetCode
- Protocol
- 운영체제
- 30. Substring with Concatenation of All Words
- 시바견
- 315. Count of Smaller Numbers After Self
- 43. Multiply Strings
- attribute
- 컴퓨터의 구조
- 715. Range Module
- Regular Expression
- 109. Convert Sorted List to Binary Search Tree
- kaggle
Archives
- Today
- Total
목록48. Rotate Image (1)
Scribbling
LeetCode: 48. Rotate Image
Rotating a matrix 90 degrees clockwise can be achieved just by transposing + mirror reversing. class Solution: def rotate(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """ m, n = len(matrix), len(matrix[0]) for i in range(m): for j in range(i+1, n): matrix[i][j], matrix[j][i] = matrix[j][i], matrix[i][j] for i in range(m): for j in range(n//2..
Computer Science/Coding Test
2021. 9. 5. 20:18