category

Trees

Hierarchical data: depth-first and breadth-first traversals.

Binary Tree Level Order Traversalinteractive

Return node values grouped level by level, top to bottom.

Medium
Lowest Common Ancestor of a Binary Treeinteractive

Find the deepest node that has both target nodes as descendants.

Medium
Validate Binary Search Treeinteractive

Check that a tree is a BST using an allowed (low, high) range per node.

Medium