Finding largest BST in binary tree

(time :1:00:00) In the case when either left subtree or right subtree is not a BST, so while returning for my current root is it required to update size attribute of the class? in the video it is updated?

@sahazeer123 hey ,in that case app max return krte ho dono me se that is from left ans and right ans,webinar me kia hai ,here is code:

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.