Why and how it is i-1 and j-1 , please explain ???
Please elaborate this sir!
hello @piyushkumar999999
this is the idea that we are using.
to find sum of abcd rectangle we need to do ABCD=OB - OA - OC +OD (where OB,OA,OC,OD are prefix sum)
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.