일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- concurrency
- 시바견
- 30. Substring with Concatenation of All Words
- 운영체제
- Regular Expression
- Python Implementation
- 43. Multiply Strings
- Substring with Concatenation of All Words
- 밴픽
- Convert Sorted List to Binary Search Tree
- shiba
- Protocol
- DWG
- t1
- LeetCode
- attribute
- 109. Convert Sorted List to Binary Search Tree
- Generator
- 315. Count of Smaller Numbers After Self
- Decorator
- 715. Range Module
- 프로그래머스
- Python Code
- kaggle
- 파이썬
- data science
- Class
- Python
- 컴퓨터의 구조
- iterator
Archives
- Today
- Total
목록114. Flatten Binary Tree to Linked List (1)
Scribbling
LeetCode: 114. Flatten Binary Tree to Linked List
현재 node -> Flattened Left Tree -> Flattened Right Tree # 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 flatten(self, root: Optional[TreeNode]) -> None: """ Do not return anything, modify root in-place instead. """ if not root: return None head, tail = self.helpe..
Computer Science/Coding Test
2021. 11. 2. 14:13