일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 715. Range Module
- 파이썬
- iterator
- concurrency
- Generator
- kaggle
- data science
- 밴픽
- Regular Expression
- 컴퓨터의 구조
- Substring with Concatenation of All Words
- 운영체제
- t1
- 43. Multiply Strings
- Convert Sorted List to Binary Search Tree
- attribute
- Python
- 프로그래머스
- Protocol
- LeetCode
- shiba
- 30. Substring with Concatenation of All Words
- 109. Convert Sorted List to Binary Search Tree
- Python Implementation
- 315. Count of Smaller Numbers After Self
- Python Code
- Class
- 시바견
- Decorator
- DWG
Archives
- Today
- Total
목록Valid Sudoku (1)
Scribbling
36. Valid Sudoku
class Solution: def isValidSudoku(self, board: List[List[str]]) -> bool: for i in range(9): for j in range(9): if board[i][j] != '.': # 가로 for k in range(9): if k == j: continue if board[i][j] == board[i][k]: return False # 세로 for k in range(9): if k == i: continue if board[i][j] == board[k][j]: return False # 사각형 start_y = i // 3 * 3 start_x = j // 3 * 3 for y in range(start_y, start_y+3): for ..
Computer Science/Coding Test
2021. 9. 6. 16:37