斐波那契 序列
摘要://1 1 2 3 5 8 13 21 .... //递归 function fib(n){ if(n==1||n==2){ return 1; } return fbnq(n-1)+fbnq(n-2);}fbnq(10);//55 //非递归function fb(n){ var a,b,res;
阅读全文
posted @ 2017-04-26 15:49
posted @ 2017-04-26 15:49
posted @ 2017-04-26 15:03