In height func what are initial values of ls ans rs

in height func what are initial values of ls ans rs.

hello @amit0001

ls and rs are variables that will hold the height of left and right subtree.

initilaly in case of leaf node they will be 0

1 Like

okay…i MARK AS resolve

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.