Sponsored
Use these hints if you're stuck. Try solving on your own first.
Think the opposite direction instead of minimum elements to remove the maximum mountain subsequence
Think of LIS it's kind of close
Solve with full IDE support and test cases