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