摘要:
package basic;public class NextGen { /** * 实际上就是迭代正向子结构Next数组的变形 */ public static void main(String[] args) { int[] c = {13,43,4,65,12,34,12,5,90,123,54,72,99,22,18,7,9,1,58,93}; int[] a = new int[c.length]; a[0] = -1; int i = -1; for(int j = 1 ; j < c.length ; j++){ i = j - 1; if(c[j] >... 阅读全文