DSA Day 90/100
Topic: Tree
1) Check for a balanced binary treeEasy
Input:
1
/
2
\
3
Output: 0
Explanation: The max difference in height
of left subtree and right subtree is 2,
which is greater than 1. Hence unbalanced
class Tree
{
int ...
preetikaprakash.hashnode.dev1 min read