Pass by reference

I did not understand why are we passing the max level by reference.
What would happen had we not passed it by reference?

Hello @prerna_gupta31 we are passign it by reference so that any change made in it should be reflected and not for that call only.
so that when both the levels becomes equal we can increment it.
if you have any further doubt you can ask here:
Happy Learning!!

https://ide.codingblocks.com/s/396144 I tried implementing the code but it is printing all the nodes instead of printing the right view

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.