Given the root of a binary tree, determine whether it is height-balanced — for every node, the heights of its two subtrees differ by at most one. Return true or false. The tree is given as a level-order array with null for missing children.
Input: A level-order array of the tree.
Output: Boolean — true or false.
Input: [1,2,3,4,5,null,6]
Output: true
Explanation: All subtree heights differ by at most 1.Input: [1,2,null,3,null,4]
Output: false
Explanation: A left-skewed chain is unbalanced.Input: []
Output: true
Explanation: Empty tree is balanced.0<=nodes<=10^4-1000<=value<=1000