Longest Increasing Decreasing Sequence
Filed under HashedIn
The question
Find the maximum length of an increasing-then-decreasing sequence formed from an array, where the maximum peak element appears once and other elements appear at most twice.
No write-up yet. Related questions below have one.
Related HashedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.