Another approach rather than my approach to generate the prefix sum
I solved this problem by using the prefix sum method.But as an output i am either getting a negative sum or a very huge sum.
hello @Varun_a19
handle the corner case
ie when i=0 or j=0 then remove all those term which uses i-1 or j-1.
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.
