235
-
[LeetCode] 235. Lowest Common Ancestor of a Binary Search TreeLeetCode 2021. 7. 19. 21:18
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/ Lowest Common Ancestor of a Binary Search Tree - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 최소공통조상(LCA)을 구하는 문제이다. 워낙에 널려있는 문제라 조금만 검색하면 풀이 자체는 쉽다! 다만 여기상에서는 int 를 return 하는 것이 아닌 여기서 만들어진 구조체를 retur..