일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 315. Count of Smaller Numbers After Self
- 밴픽
- LeetCode
- Decorator
- Protocol
- DWG
- Regular Expression
- iterator
- 운영체제
- attribute
- 715. Range Module
- Python Code
- Python
- 30. Substring with Concatenation of All Words
- 109. Convert Sorted List to Binary Search Tree
- kaggle
- t1
- Generator
- 컴퓨터의 구조
- 43. Multiply Strings
- Class
- Convert Sorted List to Binary Search Tree
- data science
- concurrency
- shiba
- 파이썬
- 프로그래머스
- Substring with Concatenation of All Words
- 시바견
Archives
- Today
- Total
목록Same Tree (1)
Scribbling
LeetCode: 100. Same Tree
BFS로 순회해보자 # 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 from collections import deque class Solution: def isSameTree(self, p: Optional[TreeNode], q: Optional[TreeNode]) -> bool: if p == None and q == None: return True if p == None and q != None: return False if p != None and q =..
Computer Science/Coding Test
2021. 10. 11. 00:23