일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Python Implementation
- Substring with Concatenation of All Words
- Generator
- 파이썬
- 밴픽
- t1
- Convert Sorted List to Binary Search Tree
- 컴퓨터의 구조
- 715. Range Module
- DWG
- Python Code
- 30. Substring with Concatenation of All Words
- Decorator
- attribute
- data science
- iterator
- 시바견
- Python
- shiba
- concurrency
- 운영체제
- 315. Count of Smaller Numbers After Self
- kaggle
- Class
- 43. Multiply Strings
- Protocol
- 프로그래머스
- 109. Convert Sorted List to Binary Search Tree
- LeetCode
- Regular Expression
Archives
- Today
- Total
목록101. Symmetric Tree (1)
Scribbling
LeetCode: 101. Symmetric 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 isSymmetric(self, root: Optional[TreeNode]) -> bool: return self.isMirror(root.left, root.right) def isMirror(self, left, right): if left == None and right == None: return True if left == None or right == None: ret..
Computer Science/Coding Test
2021. 12. 19. 21:46