Java implementation of the longest monotone increasing subsequence
Coding details


You can initialize list like this : int[] list = {1,2,9,4,7,3,11,8,14,6}; 
for (int j = 1, n = i-1; j &lt;= n; ++j) { // do not loop on limit calculation
length++; // for length = length + 1;