You are given the root of a binary tree. Your task is to determine whether the binary tree is height-balanced.
A binary tree is considered balanced if:
Return true if the tree is balanced; otherwise, return false.
Input: root = [3,9,20,null,null,15,7]
Output: true
Explanation: The height difference between the left and right subtree of every node is at most one.
Input: root = [1,2,2,3,3,null,null,4,4]
Output: false
Explanation: The left subtree is deeper than the right subtree by more than one level.
Input: root = []
Output: true
Explanation: An empty tree is balanced.
Sign in to write, run, and submit your solution against the full test suite.