236. (LCA) Lowest Common Ancestor of a Binary Tree

time: O(n)

space:O(n)

另一個思路, 用 count, 其實一樣啦...

Last updated

Was this helpful?