Balanced Tree
Medium📝 Description
Check if a binary tree is balanced
Input Format
Tree represented as nested tuples
Output Format
"true" if balanced, "false" otherwise
Constraints
Tree depth ≤ 20
🔍 Sample Input
((1, 2, 3), 4, (5, 6, 7))
✅ Sample Output
true
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run