摘要:
package test;public class ImprovedFibonacci {// public static long fib1(long index) {// if (index == 0) {// return 0;// } else if (index == 1) {// return 1;// } else {// return fib1(index - 1) + fib1(index - 2);// }// } public static long fib(long index) { long f0 = 0; long f1 = 1; long... 阅读全文