Mixed Practice: Advanced Tree Techniques

Mixed Practice: Advanced Tree Techniques

36 lessons
103 min

Lessons

1. Intro

Pattern recognition across ...

3m

2. Reading the Clues

What the problem statement ...

3m

3. Subtree vs Path Queries

First decision splits the tree

3m

4. Counting vs Computing

(Path counting needs centroid)

3m

5. Merging Information

When subtrees combine their...

3m

6. Problem - Company Queries II

(CSES Tree, LCA application)

3m1 problems

7. Think First - Company Queries II

(Before jumping to code)

3m

8. Quiz: Company Queries II

Knowledge check

2m1 problems

9. Reveal - Company Queries II

(Why LCA is the right choice)

3m

10. Company Queries II - Implementation

(Binary lifting LCA code)

3m1 problems

11. Lessons - Company Queries II

(Pattern recognition takeaway)

3m

12. Problem - Path Queries II

CSES Tree, path max with up...

3m1 problems

13. Think First - Path Queries II

(Updates change everything)

3m

14. Quiz: Path Queries II

Knowledge check

2m1 problems

15. Reveal - Path Queries II

(Why HLD handles updates)

3m

16. Path Queries II - Implementation

(HLD with segment trees)

3m1 problems

17. Lessons - Path Queries II

(When to use HLD)

3m

18. Problem - Blood Cousins

Codeforces 208E, LCA + Eule...

3m1 problems

19. Think First - Blood Cousins

(Combining two techniques)

3m

20. Quiz: Blood Cousins

Knowledge check

2m1 problems

21. Reveal - Blood Cousins

(Two techniques work together)

3m

22. Blood Cousins - Implementation

LCA to find ancestor, Euler...

3m1 problems

23. Lessons - Blood Cousins

(Combining techniques)

3m

24. Problem - Lomsat gelral

Codeforces 600E, Small-to-L...

3m1 problems

25. Think First - Lomsat gelral

Merging subtree frequency c...

3m

26. Quiz: Lomsat gelral

Knowledge check

2m1 problems

27. Reveal - Lomsat gelral

(Why Small-to-Large works)

3m

28. Lomsat gelral - Implementation

DFS with Small-to-Large mer...

3m1 problems

29. Lessons - Lomsat gelral

(When to merge small-to-large)

3m

30. Problem - Fixed-Length Paths I

(CSES, centroid decomposition)

3m1 problems

31. Think First - Fixed-Length Paths I

(Counting paths by length)

3m

32. Quiz: Fixed-Length Paths I

Knowledge check

2m1 problems

33. Reveal - Fixed-Length Paths I

(Why centroid splits the tree)

3m

34. Fixed-Length Paths I - Implementation

Centroid recursion with dis...

3m1 problems

35. Lessons - Fixed-Length Paths I

When to use centroid decomp

3m

36. Section Recap

(Pattern recognition summary)

3m

Ready to start learning?

Access all 36 lessons with interactive content and progress tracking.