Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Check if Binary Tree is Balanced

Difficulty: Medium

Acceptance: 77.00%

Points: 30.00

Given the root of a binary tree, return true if the tree is height-balanced, otherwise return false. A binary tree is considered height-balanced if for every node in the tree, the height difference between its left and right subtrees is not more than 1.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 0 = number of nodes = 105
  • -104 = Node.val = 104
Companies:
Microsoft
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.