| Learn | Algorithm - Binary Search Trees - Lowest common ancestor in a bst |
|---|
| Lowest common ancestor in a BST Consider the BST: Lowest common ancestor of 22 and 26 is 24 Lowest common ancestor of 26 and 49 is 46 Lowest common ancestor of 22 and 24 is 24 Binary search tree property can be used for finding nodes lowest ancestor Psuedo code: |
Read Article
https://develop.horje.com/learn/1434/reference