↵
I'm getting MLE at test 33 here is the [problem](https://mirror.codeforces.com/problemset/problem/4/D/)↵
↵
and my [submission](https://mirror.codeforces.com/contest/4/submission/253523013) ↵
↵
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.
I'm getting MLE at test 33 here is the [problem](https://mirror.codeforces.com/problemset/problem/4/D/)↵
↵
and my [submission](https://mirror.codeforces.com/contest/4/submission/253523013) ↵
↵
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.