Posted By


jacktan on 10/20/14

Tagged


Statistics


Viewed 435 times
Favorited by 0 user(s)

Fibonacci第n项java实现


/ Published in: Java
Save to your folder(s)

考虑到Fibonacci数列增长速度之快,返回值用long类型;如果long类型还不够,下一步考虑使用BigInteger类。

----
//TODO

* 补充两种方法的大O分析和性能测试

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.