list = { 2, 8, 3, 2, 9, 8, 6, 3, 4, 6, 1, 9 }
where n = 12. List elements are numbered starting at 0. We define arun up to be a (k+1)-length subsequence listi, listi+1,
listi+2, …, listi+k, that is monotonically increasing (i.e.,listi+j ≥ listi+j-1 for each j = 1, 2, 3, …, k). Similarly, a rundown
is a (k+1)-length subsequence listi, listi+1, listi+2, …,listi+k, that is monotonically decreasing (i.e., listi+j-1 ≤listi+j for each
j = 1, 2, 3, …, k). For the above example list we have these runsup and runs down:
Runs Up
list0 through list1 = { 2, 8 };
PayPal Gateway not configured
PayPal Gateway not configured