From e4ec77bb6ea59af1f8e3e261f9c263c5a041917c Mon Sep 17 00:00:00 2001 From: Myeongseon Choi Date: Sun, 22 Sep 2024 00:59:22 +0900 Subject: [PATCH] Problem description for balanced-binary-tree --- leetcode/balanced-binary-tree/Readme.md | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 leetcode/balanced-binary-tree/Readme.md diff --git a/leetcode/balanced-binary-tree/Readme.md b/leetcode/balanced-binary-tree/Readme.md new file mode 100644 index 0000000..4ca51ac --- /dev/null +++ b/leetcode/balanced-binary-tree/Readme.md @@ -0,0 +1,31 @@ +Given a binary tree, determine if it is height-balanced. + +  +Example 1: + + +Input: root = [3,9,20,null,null,15,7] +Output: true + + +Example 2: + + +Input: root = [1,2,2,3,3,null,null,4,4] +Output: false + + +Example 3: + + +Input: root = [] +Output: true + + +  +Constraints: + + + The number of nodes in the tree is in the range [0, 5000]. + -104 <= Node.val <= 104 +