일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 시바견
- concurrency
- Generator
- 43. Multiply Strings
- kaggle
- Class
- 30. Substring with Concatenation of All Words
- 파이썬
- Regular Expression
- 프로그래머스
- 109. Convert Sorted List to Binary Search Tree
- 715. Range Module
- attribute
- Python Code
- DWG
- Substring with Concatenation of All Words
- Protocol
- LeetCode
- shiba
- Decorator
- 315. Count of Smaller Numbers After Self
- Python Implementation
- Convert Sorted List to Binary Search Tree
- 운영체제
- data science
- Python
- t1
- 밴픽
- iterator
- 컴퓨터의 구조
Archives
- Today
- Total
목록Binary Tree Zigzag Level Order Traversal (1)
Scribbling
LeetCode: 103. Binary Tree Zigzag Level Order Traversal
102번 문제를 풀면 하나 더 주는 공짜 문제. 밑의 코드만 추가해준다. for i in range(len(ret)): if i % 2 == 1: ret[i].reverse() https://focalpoint.tistory.com/128 LeetCode: 102. Binary Tree Level Order Traversal - 시바견의 끄적임 BFS하면서 기록해준다. from collections import deque # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # s.. focalpoint...
Computer Science/Coding Test
2021. 10. 20. 16:21