I have a doubt in the soln of ways for elephant

prateek bhaiya says : sigma dp[r][y]+dp[x][r] r is 0->x-1 and y-1 respectively

But i think it must be
Sigma dp[r][y] + dp[x][r] but r should be from x-k and y-k, respectively

Prateek bhaiya may be has told for k=infinity

Hi Laksh,
can u share the code u are referring to…

bhaiya see this formula written in bottom right corner

yes it would vary at each matrix index we are at… just run two loops and accordingly find ans at each point…

matlab i was right or wrong?
I am into some other question( :exploding_head:) that’s y asking again

look… share ur code once and then explain exactly what issue u are facing…leave all this sigma formula and all

shall i consider it as resolved??

Yes for now… if i feel like coming back to it i will reopen it.

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.