请问如何快速地求出最大上升子序列和?
bdfs 后发现全都是 Θ(n2)\Theta(n^2)Θ(n2) 的,请问有没有 Θ(nlogn)\Theta(n\log n)Θ(nlogn) 的做法?
如果有的话能不能发份代码