摘要: 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... 阅读全文
posted @ 2013-03-25 22:50 huangzhijun 阅读(122) 评论(0) 推荐(0) 编辑