1521. War Games 2

How to approch this problem? Can you share the pbds code for it?
problem link War games 2

Hi @utkarsh.lal9430310535
this problem requires us of tree also.
so along with pbds, u will require use of tree also.
are u comfortable with trees.?

Yes, I am comfortable with trees.

Hi @utkarsh.lal9430310535
sorry for the late reply.
refer to dis code.


try refering to dis code.
in dis code, trees have not been used.
Hope dis helps.

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.