Skip to content

Commit cc22a85

Browse files
authored
Merge pull request #24 from programmingbookclub/33-binary
Create 33 2021 1116 Binary Tree
2 parents 7ff049a + 297d584 commit cc22a85

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

紀錄/33 2021 1116 Binary Tree.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# LeetCode 讀書會第 33 次聚會 2021/11/16
2+
3+
## leetcode 讀書會通知
4+
5+
1. 項目: 第 33 次聚會
6+
2. 目的: 線上一起寫題目, 由有想法的人帶領, 先解題, 再看該題有趣的解法
7+
3. 時間: 11/16 (二) 20:00 ~ 21:00
8+
4. 地點: google meet 線上 (前 10 分鐘預備鏈接)
9+
5. 解題項目: [Binary Tree](https://leetcode.com/explore/learn/card/data-structure-tree/)
10+
6. 共筆: GitHub https://github.com/programmingbookclub/Leetcode-club
11+
7. 備註:
12+
13+
上次聊了一些 Traversal 的解法(Pre/In/Post order), 有一個 Todo,一個 regret
14+
TODO: 不太懂 iterative 在幹什麼,看有沒有辦法用比較易懂的方式講 iterative
15+
REGRET:Google Meet 上面的聊天室忘了備份
16+
17+
關於 TODO,希望可以先蒐集大家的回答(事先留言/現場回應)。這次聚會預期的目標是:
18+
> 1. 回顧 recursion 如何轉換成 iteration
19+
> 2. 102 持續討論 recursion 與 iteration
20+
> 3. 104 101 112 以看到題目的第一個想法為主
21+
> 4. 希望可以聊到 4 題 102、104、101、112
22+
23+
* MEDIUM 102 Binary Tree Level Order Traversal https://leetcode.com/problems/binary-tree-level-order-traversal
24+
* EASY 104 Maximum Depth of Binary Tree https://leetcode.com/problems/maximum-depth-of-binary-tree
25+
* EASY 101 Symmetric Tree https://leetcode.com/problems/symmetric-tree
26+
* EASY 112 Path Sum https://leetcode.com/problems/path-sum
27+
* MEDIUM 106 Construct Binary Tree from Inorder and Postorder Traversal https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
28+
* MEDIUM 105 Construct Binary Tree from Preorder and Inorder Traversal https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
29+
* MEDIUM 116 Populating Next Right Pointers in Each Node https://leetcode.com/problems/populating-next-right-pointers-in-each-node
30+
* MEDIUM 117 Populating Next Right Pointers in Each Node II https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii
31+
* MEDIUM 236 Lowest Common Ancestor of a Binary Tree https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
32+
* HARD 297 Serialize and Deserialize Binary Tree https://leetcode.com/problems/serialize-and-deserialize-binary-tree
33+
34+
---
35+
Notes:
36+
37+
38+
102- recusion
39+
https://leetcode.com/problems/binary-tree-level-order-traversal/discuss/1413730/Binary-Tree-Level-Order-Traversal%3A-Java-Recursive-Solution
40+
41+
42+
DinDin下午8:28
43+
想問用iteratively優勢是會比較快是嗎? 當初做都是用 recursively一路寫到底
44+
DinDin下午8:32
45+
好喔 謝謝
46+
PENG YU下午8:36
47+
查一下網路recursively好像用起來代價然比較大.(記憶體資源)然後比較慢.
48+
49+
https://stackoverflow.com/questions/15688019/recursion-versus-iteration
50+
51+
52+
Yu-Lin Wang下午8:38
53+
recursive 優勢應該是解法好懂吧

0 commit comments

Comments
 (0)