Method shown in the lecture doesn’t work for COMPLETELY negative inputs.
For negative inputs
@ksalokya for all negative nodes your answer will be the node with least negative value so maintain a global variable and minimize it every time we go on a node and at last we just minimize our ans with this variable it will work fine
if you still have a doubt feel free to ask further and if clear please rate my experience
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.