Hello Trailblazers, In this tutorial we're going to learn, how can we find the lowest common ancestor node of any two given nodes in a binary tree. We're going to proceed with our "Find the Lead Manager" problem from previous tutorials, as we already created a tree of Employee Ids, so, in this tutorial we'll focus on, how we can find the lead manager given two employee ids using the binary tree.
Chapters:
0:00 Introduction
0:34 What is a lowest common ancestor node?
2:32 Detailed Explanation of Code
12:36 Quick Explanation Recap
14:20 Quick Explanation - Both nodes in same branch
15:52 Code Execution
21:33 Wrapping up and Resources
Blog: https://www.sfdcstop.com/2021/07/bina...
Code: https://github.com/rahulmalhotra/apex...
Binary Tree Implementation: • Binary Tree implementation in Apex | ...
Insertion in Binary Tree based on Parent Node: • Insertion in Binary Tree based on par...
Find the Lead Manager Part 1 (Prolem Statement Explanation): • Find the Lead Manager Part 1 - Proble...
Find the Lead Manager Part 2 (Employee Id Binary Tree Creation): • Find the Lead Manager Part 2 - Creati...
Subscribe to SFDC Stop:- https://www.youtube.com/c/sfdcstop?su...
LWC Todo App Project Tutorial Series - • Simplifying the Callouts in Salesforc...
Interested in learning about Scratch Orgs and SFDX ? Have a look at the playlist:- • Getting started with Scratch Orgs and...
Interested in learning about Integration ? Have a look at this playlist:- • Salesforce Integration Tutorial Series