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