Skip to main content

9 docs tagged with "Tree"

View all tags

Balanced Binary Tree

Determine if a given binary tree is height-balanced, meaning the heights of the two subtrees of every node never differ by more than one.

Invert Binary Tree

Given the root of a binary tree, invert the tree by swapping its left and right children at each node.