i tried to solve the balanced tree but i am getting wrong output. please tell me whats the wrong in my approach and how to correct my approach.
Getting wrong output
DID u check out how bhaiya has taught in the tutorial???
its extrremely easy to undertand
here i see u use 2 diff fn to calculate right height and left height
which is quite inefficient since just 1 fn is enough