why we taking suffix and prefix sum??
Why we taking suffix and prefix sum
Hi,
We will take MAXIMUM prefix and MAXIMUM suffix sum to check whether the total sum of maximum suffix sum of left child and maximum prefix sum of right child is greater than max sum in left child and max sum in right child.
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.