1644. Lowest Common Ancestor of a Binary Tree II
這題
所以用 236 第二種解法可以 work (算 count)
T: O(n)
S: O(h) ~O(n)
Previous236. (LCA) Lowest Common Ancestor of a Binary TreeNext1650. (LCA) Lowest Common Ancestor of a Binary Tree III
Last updated
這題
所以用 236 第二種解法可以 work (算 count)
T: O(n)
S: O(h) ~O(n)
Last updated