| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 컴퓨터의 구조
- 파이썬
- t1
- 43. Multiply Strings
- DWG
- Protocol
- 밴픽
- Python Implementation
- LeetCode
- Generator
- 프로그래머스
- Convert Sorted List to Binary Search Tree
- Decorator
- attribute
- iterator
- concurrency
- Python
- Substring with Concatenation of All Words
- Regular Expression
- 시바견
- 운영체제
- Python Code
- 30. Substring with Concatenation of All Words
- 715. Range Module
- shiba
- kaggle
- 315. Count of Smaller Numbers After Self
- 109. Convert Sorted List to Binary Search Tree
- Class
- data science
Archives
- Today
- Total
목록79. Word Search (1)
Scribbling
LeetCode: 79. Word Search
class Solution: def exist(self, board: List[List[str]], word: str) -> bool: n, m = len(board), len(board[0]) for i in range(n): for j in range(m): if self.dfs(board, i, j, word, 0): return True return False def dfs(self, board, y, x, word, k): if k == len(word): return True if y = len(board) or x = len(board[0]) or board[y][x] == '@': return False char = word[k] if board[y][x..
Computer Science/Coding Test
2021. 10. 1. 22:27