All Ones dp problem

last test case is giving run error ,Help!!
code link https://ide.codingblocks.com/s/239250

Hey @Bhawna
Here is your updated code
Just memory constraint issues

ok thank u,I got AC but In main memory upto what size we can load??

@Bhawna
I think you got the answer for this on WhatsApp group
Is there anything else I can help you with ?
If not kindly close this doubt

No Sir,no more doubts.

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.