This website uses cookies to enhance the user experience
Find Lowest Common Ancestor in BST
Difficulty: 💪🏽 Medium
Problem Statement
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. The LCA is defined as the lowest node that has both nodes as descendants.