LongestIncreasingSubsequence

LongestIncreasingSubsequence[p]
finds the longest increasing scattered subsequence of permutation p.

DetailsDetails

New to Mathematica? Find your learning path »
Have a question? Ask support »