Find the Lead Manager Part 2 - Creating a Binary Tree of Employee Ids | Apex Data Structure Tutorial

Опубликовано: 14 Ноябрь 2024
на канале: SFDC Stop
925
9

Hello Trailblazers, In this tutorial we're going to create a binary tree of Employee Ids in order to solve the problem: "Find the Lead Manager". We're going to use the previous concepts where we learned, how can we insert a node in a binary tree based on the value of parent node. We're going to insert each employee one by one in the binary tree and for each employee, we'll insert the employees reporting to it after the current employee is inserted.

Chapters:
0:00 Introduction
0:21 Finding the top most Employee record
2:50 Querying Employee records to form Employee Map
6:03 Initial Explanation
6:45 Id Compare Class
8:50 Creating a Binary Tree using Employee Map
18:08 Overview of Lowest Common Ancestor
19:38 Wrapping up

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:    • Find the Lead Manager Part 1 - Proble...  

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