반응형
Recent Posts
Notice
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 백준 2309
- 딥러닝
- 파이썬
- dfs
- 개발자취업
- 큐
- 프로그래머스
- 구현
- 99클럽
- 알고리즘
- 99항해
- BFS
- leetcode
- 코딩테스트준비
- 백준
- softeer
- til
- 해시
- BOJ
- python 2309
- 스택
- 개발자 취업
- 혁펜하임
- 활성화 함수
- 항해99
- Python
- 코딩테스트 준비
- boj 2309
- easy 딥러닝
- 기능개발
Archives
- Today
- Total
동까의 코딩
[99클럽] 25일차 TIL 본문
반응형
https://leetcode.com/problems/subrectangle-queries/
class SubrectangleQueries:
def __init__(self, rectangle: List[List[int]]):
self.rectangle = rectangle
def updateSubrectangle(self, row1: int, col1: int, row2: int, col2: int, newValue: int) -> None:
for i in range(row1, row2 + 1) :
for j in range(col1, col2 + 1) :
self.rectangle[i][j] = newValue
def getValue(self, row: int, col: int) -> int:
return self.rectangle[row][col]
지난 문제에 비해서 난이도는 낮은 느낌이였습니다.
반응형
'문제 풀이 > 99클럽' 카테고리의 다른 글
[99클럽] 27일차 TIL (0) | 2024.06.16 |
---|---|
[99클럽] 26일차 TIL (0) | 2024.06.16 |
[99클럽] 24일차 TIL (1) | 2024.06.14 |
[99클럽] 23일차 TIL (0) | 2024.06.12 |
[99클럽] 22일차 TIL (0) | 2024.06.11 |