Longest subsequence that increases then decreases
Filed under Drishti-Soft Solutions
The question
Find the length of the longest subsequence that first strictly increases and then decreases, for example 8 1 2 3 4 5 6 7 6 5 gives 9.
No write-up yet. Related questions below have one.
Related Drishti-Soft Solutions questions
Collected from public candidate posts and coding forums. Updated Nov 2026.