일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- iterator
- 43. Multiply Strings
- 컴퓨터의 구조
- attribute
- Class
- 109. Convert Sorted List to Binary Search Tree
- 운영체제
- 315. Count of Smaller Numbers After Self
- 프로그래머스
- 시바견
- concurrency
- Python Code
- Generator
- 715. Range Module
- Python Implementation
- LeetCode
- kaggle
- Decorator
- 30. Substring with Concatenation of All Words
- Protocol
- data science
- t1
- Convert Sorted List to Binary Search Tree
- Python
- 파이썬
- shiba
- 밴픽
- Regular Expression
- Substring with Concatenation of All Words
- DWG
Archives
- Today
- Total
목록36. 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