Graph Theory37 sections · 1633 units
Open in CourseQuiz: Company Queries II
Knowledge check
Check Your Understanding
Company Queries II: Find the LCA of two employees in a company tree. What technique should you use?
- A.Floyd-Warshall on the tree
- B.DFS from both nodes until paths meet
- C.BFS from the root
- D.Binary lifting with preprocessing per node