[leetcode] 236. Lowest Common Ancestor of a Binary Tree @ python

原題 https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/node 解法 參考: LeetCode 236 Lowest Common Ancestor of a Binary Tree 【公瑾講解】 使用遞歸, base case是返回root或None.而後使用分治法, 若是左右節點的lowestCommo
相關文章
相關標籤/搜索