NIce Subsequence - A variant of Longest Increasing Subsequence

前端 未结 0 1173
青春惊慌失措
青春惊慌失措 2021-01-14 16:01

A subsequence X[1..k] is nice if X[i] > X[i - 2] for all i > 2. Compute a longest nice subsequence of an arbitrary array of integers A[1...n].
I h

相关标签:
回答
  • 消灭零回复
提交回复
热议问题