Tiling problem 2 runtime error

Hey its not possible to declare a 2-D array of size 10^4 * 10^4. You are proceeding in the wrong direction. Think of a dp solution which only works in O(n). Your solution will always give runtime error as that much space is not allocated.

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.