↓
快轉到主要內容
Blog
分類
演算法
後端技術
資料庫
分散式系統
面試經歷
實習經歷
LeetCode
論文發表
所有標籤
繁體中文
English
繁體中文
繁體中文
English
繁體中文
Blog
分類
演算法
後端技術
資料庫
分散式系統
面試經歷
實習經歷
LeetCode
論文發表
所有標籤
Binary-Lifting
LeetCode 236: Lowest Common Ancestor of a Binary Tree
2022-11-18
·
1 分鐘
LeetCode
Medium
Tree
Depth-First-Search
Binary-Tree
Binary-Lifting
LeetCode 236 解題筆記:遞迴回傳子樹裡找到的 p 或 q;左右都找到代表在這裡分岔,這個節點就是 LCA