The val of n<=17000, but cant make dp[17000][17000] ?
Constraint Doubt
hello @sudanarya
yeah we cannot make big size array because it consume too much memory.
sizeof(datatype of dp array ) * 17000 * 17000.
but in hint video dp[][] is used
then check the constraint once again,
it may 1700 in place of 17000
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.