When i am solving any DP problem using Recursion+memorisation and its a 2D DP question with constraints as first element can be upto 10^5 and second is upto 10^2 the when i am passing my array/vector to the function for memorisation or declaring dp array/vector globally then it is showing runtime error and all test cases are passed
but if constraints are less then it worked fine
also please tell me how to solve large constraint questions using top down dp
plz reply ASAP