235. Lowest Common Ancestor of a Binary Search Tree

2nd try

time: O(n)

space: O(h), worst O(n)

1st try

time: O(n)

Space: O(n)

Last updated