일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Protocol
- 30. Substring with Concatenation of All Words
- Convert Sorted List to Binary Search Tree
- iterator
- 시바견
- 밴픽
- 프로그래머스
- data science
- kaggle
- DWG
- t1
- concurrency
- 파이썬
- Regular Expression
- Python Code
- 컴퓨터의 구조
- 315. Count of Smaller Numbers After Self
- 109. Convert Sorted List to Binary Search Tree
- Substring with Concatenation of All Words
- 43. Multiply Strings
- 운영체제
- Python Implementation
- shiba
- attribute
- 715. Range Module
- Decorator
- Class
- LeetCode
- Generator
- Python
Archives
- Today
- Total
목록Path Sum II (1)
Scribbling
LeetCode: 113. Path Sum II
DFS Solution # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def pathSum(self, root: Optional[TreeNode], targetSum: int) -> List[List[int]]: if not root: return [] self.ret = [] self.dfs(root, [], 0, targetSum) return self.ret def dfs(self, node, path, tempSum, targ..
Computer Science/Coding Test
2021. 10. 27. 19:55