Note that the subsequences do not need to be contiguous.
Sample implementation:
It is cool how even for such a "simple looking" problem, we were still unable to prove optimality as of 2020!

Articles by others on the same topic (0)

There are currently no matching articles.