All problems
› Tree problems
Tree problems
9 Tree DSA practice problems on CampusCode, each with statement, examples and constraints.
684. Maximum Binary Tree (Monotonic Stack Build)
Hard
Stack
686. Flatten Binary Tree to Linked List
Hard
Stack
914. Minimum Time to Collect All Apples
Medium
Trees
918. Delete Node and Return Forest
Medium
Trees
959. Lowest Common Ancestor Using Binary Lifting
Hard
Trees
960. LCA + Distance Queries on a Tree
Hard
Trees
1088. Minimum Height Trees — Topological Trim
Hard
Graphs
1389. Maximum Genetic Difference Query
Hard
Bit Manipulation
1392. Shortest Path in Binary Tree via XOR
Hard
Bit Manipulation