I'm getting MLE at test 33 here is the problem
and my submission
here i used LIS dp -> time O(N^2), space O(N^2) .... i don't know how to convert space to O(n) and also at the same time get a particular solution.
How can i space optimize this ?
I'm getting MLE at test 33 here is the problem
and my submission
here i used LIS dp -> time O(N^2), space O(N^2) .... i don't know how to convert space to O(n) and also at the same time get a particular solution.