Pls explain preprocess function


why are we only copying just the first row instead of copying the whole matrix to aux[][]
pls clear

we are making array named aux such that
aux[i][j]=> sum of element from 0,0 to i,j

for making the aux array first we have to add col wise then row wise
but before this we have copy first row as it is
because first row of aux matrix and mat matrix remain same

if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like :heart:: and don’t forgot to mark doubt as resolved :grinning:

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.