why we iterating from mid to left while calculatiing the sum of the left part of mid
Why we iterating right to left when including elemnts to the left of mid
@chemant077 there we want a cross sum of left and right, so for this the sum must include mid element hence it must be start with mid. if we start from left then there may be chances that it will skip the mid element and gives you the max sum of left part which you cant add to right part.
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.