PROJECT EULER · #0916
Restricted Permutations
Let
1. There is no ascending subsequence with more than
2. There is no descending subsequence with more than two elements.
Note that subsequences need not be contiguous. For example, the permutation
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.