110 Balanced Binary Tree – Easy
Problem:
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
Thoughts:
Check every node if they meet the criteria for balanced Binary Tree. In order to do the check, we need the height of the left subtree and the right subtree of the current node.
Solutions:
Previous109 Convert Sorted List to Binary Search Tree – MediumNext111Minimum Depth of Binary Tree – Easy
Last updated